AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iam/model/AttachedPermissionsBoundary.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iam/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace IAM
26{
27namespace Model
28{
29
38 class User
39 {
40 public:
41 AWS_IAM_API User();
42 AWS_IAM_API User(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_IAM_API User& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
56 inline const Aws::String& GetPath() const{ return m_path; }
57 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
58 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
59 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
60 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
61 inline User& WithPath(const Aws::String& value) { SetPath(value); return *this;}
62 inline User& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
63 inline User& WithPath(const char* value) { SetPath(value); return *this;}
65
67
70 inline const Aws::String& GetUserName() const{ return m_userName; }
71 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
72 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
73 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
74 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
75 inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
76 inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
77 inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
79
81
87 inline const Aws::String& GetUserId() const{ return m_userId; }
88 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
89 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
90 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
91 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
92 inline User& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
93 inline User& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
94 inline User& WithUserId(const char* value) { SetUserId(value); return *this;}
96
98
104 inline const Aws::String& GetArn() const{ return m_arn; }
105 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
106 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
107 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
108 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
109 inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
110 inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
111 inline User& WithArn(const char* value) { SetArn(value); return *this;}
113
115
119 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
120 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
121 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
122 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
123 inline User& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
124 inline User& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
126
128
145 inline const Aws::Utils::DateTime& GetPasswordLastUsed() const{ return m_passwordLastUsed; }
146 inline bool PasswordLastUsedHasBeenSet() const { return m_passwordLastUsedHasBeenSet; }
147 inline void SetPasswordLastUsed(const Aws::Utils::DateTime& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = value; }
148 inline void SetPasswordLastUsed(Aws::Utils::DateTime&& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = std::move(value); }
149 inline User& WithPasswordLastUsed(const Aws::Utils::DateTime& value) { SetPasswordLastUsed(value); return *this;}
150 inline User& WithPasswordLastUsed(Aws::Utils::DateTime&& value) { SetPasswordLastUsed(std::move(value)); return *this;}
152
154
159 inline const AttachedPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
160 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
161 inline void SetPermissionsBoundary(const AttachedPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
162 inline void SetPermissionsBoundary(AttachedPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
164 inline User& WithPermissionsBoundary(AttachedPermissionsBoundary&& value) { SetPermissionsBoundary(std::move(value)); return *this;}
166
168
174 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
177 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
178 inline User& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
179 inline User& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
180 inline User& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
181 inline User& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
183 private:
184
185 Aws::String m_path;
186 bool m_pathHasBeenSet = false;
187
188 Aws::String m_userName;
189 bool m_userNameHasBeenSet = false;
190
191 Aws::String m_userId;
192 bool m_userIdHasBeenSet = false;
193
194 Aws::String m_arn;
195 bool m_arnHasBeenSet = false;
196
197 Aws::Utils::DateTime m_createDate;
198 bool m_createDateHasBeenSet = false;
199
200 Aws::Utils::DateTime m_passwordLastUsed;
201 bool m_passwordLastUsedHasBeenSet = false;
202
203 AttachedPermissionsBoundary m_permissionsBoundary;
204 bool m_permissionsBoundaryHasBeenSet = false;
205
206 Aws::Vector<Tag> m_tags;
207 bool m_tagsHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace IAM
212} // namespace Aws
User & WithPath(const char *value)
Definition User.h:63
void SetPasswordLastUsed(const Aws::Utils::DateTime &value)
Definition User.h:147
void SetUserId(const Aws::String &value)
Definition User.h:89
void SetPath(const Aws::String &value)
Definition User.h:58
User & WithUserName(const char *value)
Definition User.h:77
void SetUserName(Aws::String &&value)
Definition User.h:73
const AttachedPermissionsBoundary & GetPermissionsBoundary() const
Definition User.h:159
AWS_IAM_API User & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Tag > & GetTags() const
Definition User.h:174
void SetPath(Aws::String &&value)
Definition User.h:59
void SetUserId(Aws::String &&value)
Definition User.h:90
bool TagsHasBeenSet() const
Definition User.h:175
const Aws::Utils::DateTime & GetPasswordLastUsed() const
Definition User.h:145
User & WithUserName(const Aws::String &value)
Definition User.h:75
User & WithCreateDate(Aws::Utils::DateTime &&value)
Definition User.h:124
User & WithCreateDate(const Aws::Utils::DateTime &value)
Definition User.h:123
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition User.h:122
User & WithUserId(const Aws::String &value)
Definition User.h:92
AWS_IAM_API User()
User & WithPath(const Aws::String &value)
Definition User.h:61
void SetPasswordLastUsed(Aws::Utils::DateTime &&value)
Definition User.h:148
User & WithUserId(const char *value)
Definition User.h:94
User & WithTags(Aws::Vector< Tag > &&value)
Definition User.h:179
const Aws::String & GetUserName() const
Definition User.h:70
User & WithUserName(Aws::String &&value)
Definition User.h:76
void SetPermissionsBoundary(AttachedPermissionsBoundary &&value)
Definition User.h:162
User & WithArn(Aws::String &&value)
Definition User.h:110
void SetPath(const char *value)
Definition User.h:60
void SetArn(Aws::String &&value)
Definition User.h:107
bool UserIdHasBeenSet() const
Definition User.h:88
User & WithArn(const Aws::String &value)
Definition User.h:109
User & WithPermissionsBoundary(AttachedPermissionsBoundary &&value)
Definition User.h:164
void SetArn(const Aws::String &value)
Definition User.h:106
const Aws::Utils::DateTime & GetCreateDate() const
Definition User.h:119
void SetUserName(const char *value)
Definition User.h:74
bool PermissionsBoundaryHasBeenSet() const
Definition User.h:160
const Aws::String & GetPath() const
Definition User.h:56
bool UserNameHasBeenSet() const
Definition User.h:71
void SetUserName(const Aws::String &value)
Definition User.h:72
void SetTags(const Aws::Vector< Tag > &value)
Definition User.h:176
void SetTags(Aws::Vector< Tag > &&value)
Definition User.h:177
const Aws::String & GetUserId() const
Definition User.h:87
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPermissionsBoundary(const AttachedPermissionsBoundary &value)
Definition User.h:161
User & WithPath(Aws::String &&value)
Definition User.h:62
bool PathHasBeenSet() const
Definition User.h:57
const Aws::String & GetArn() const
Definition User.h:104
User & WithPasswordLastUsed(Aws::Utils::DateTime &&value)
Definition User.h:150
User & WithTags(const Aws::Vector< Tag > &value)
Definition User.h:178
User & AddTags(Tag &&value)
Definition User.h:181
User & AddTags(const Tag &value)
Definition User.h:180
bool PasswordLastUsedHasBeenSet() const
Definition User.h:146
AWS_IAM_API User(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ArnHasBeenSet() const
Definition User.h:105
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition User.h:121
bool CreateDateHasBeenSet() const
Definition User.h:120
User & WithUserId(Aws::String &&value)
Definition User.h:93
void SetArn(const char *value)
Definition User.h:108
User & WithPermissionsBoundary(const AttachedPermissionsBoundary &value)
Definition User.h:163
User & WithPasswordLastUsed(const Aws::Utils::DateTime &value)
Definition User.h:149
void SetUserId(const char *value)
Definition User.h:91
User & WithArn(const char *value)
Definition User.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream