AWS SDK for C++  1.8.7
AWS SDK for C++
User.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
13 #include <aws/iam/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace IAM
26 {
27 namespace Model
28 {
29 
39  {
40  public:
41  User();
42  User(const Aws::Utils::Xml::XmlNode& xmlNode);
43  User& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
48 
54  inline const Aws::String& GetPath() const{ return m_path; }
55 
61  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
62 
68  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
69 
75  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
76 
82  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
83 
89  inline User& WithPath(const Aws::String& value) { SetPath(value); return *this;}
90 
96  inline User& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
97 
103  inline User& WithPath(const char* value) { SetPath(value); return *this;}
104 
105 
109  inline const Aws::String& GetUserName() const{ return m_userName; }
110 
114  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
115 
119  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
120 
124  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
125 
129  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
130 
134  inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
135 
139  inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
140 
144  inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
145 
146 
153  inline const Aws::String& GetUserId() const{ return m_userId; }
154 
161  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
162 
169  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
170 
177  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
178 
185  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
186 
193  inline User& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
194 
201  inline User& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
202 
209  inline User& WithUserId(const char* value) { SetUserId(value); return *this;}
210 
211 
218  inline const Aws::String& GetArn() const{ return m_arn; }
219 
226  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
227 
234  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
235 
242  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
243 
250  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
251 
258  inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
259 
266  inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
267 
274  inline User& WithArn(const char* value) { SetArn(value); return *this;}
275 
276 
281  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
282 
287  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
288 
293  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
294 
299  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
300 
305  inline User& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
306 
311  inline User& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
312 
313 
331  inline const Aws::Utils::DateTime& GetPasswordLastUsed() const{ return m_passwordLastUsed; }
332 
350  inline bool PasswordLastUsedHasBeenSet() const { return m_passwordLastUsedHasBeenSet; }
351 
369  inline void SetPasswordLastUsed(const Aws::Utils::DateTime& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = value; }
370 
388  inline void SetPasswordLastUsed(Aws::Utils::DateTime&& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = std::move(value); }
389 
407  inline User& WithPasswordLastUsed(const Aws::Utils::DateTime& value) { SetPasswordLastUsed(value); return *this;}
408 
426  inline User& WithPasswordLastUsed(Aws::Utils::DateTime&& value) { SetPasswordLastUsed(std::move(value)); return *this;}
427 
428 
435  inline const AttachedPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
436 
443  inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
444 
451  inline void SetPermissionsBoundary(const AttachedPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
452 
459  inline void SetPermissionsBoundary(AttachedPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
460 
467  inline User& WithPermissionsBoundary(const AttachedPermissionsBoundary& value) { SetPermissionsBoundary(value); return *this;}
468 
475  inline User& WithPermissionsBoundary(AttachedPermissionsBoundary&& value) { SetPermissionsBoundary(std::move(value)); return *this;}
476 
477 
484  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
485 
492  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
493 
500  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
501 
508  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
509 
516  inline User& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
517 
524  inline User& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
525 
532  inline User& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
533 
540  inline User& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
541 
542  private:
543 
544  Aws::String m_path;
545  bool m_pathHasBeenSet;
546 
547  Aws::String m_userName;
548  bool m_userNameHasBeenSet;
549 
550  Aws::String m_userId;
551  bool m_userIdHasBeenSet;
552 
553  Aws::String m_arn;
554  bool m_arnHasBeenSet;
555 
556  Aws::Utils::DateTime m_createDate;
557  bool m_createDateHasBeenSet;
558 
559  Aws::Utils::DateTime m_passwordLastUsed;
560  bool m_passwordLastUsedHasBeenSet;
561 
562  AttachedPermissionsBoundary m_permissionsBoundary;
563  bool m_permissionsBoundaryHasBeenSet;
564 
565  Aws::Vector<Tag> m_tags;
566  bool m_tagsHasBeenSet;
567  };
568 
569 } // namespace Model
570 } // namespace IAM
571 } // namespace Aws
const Aws::Utils::DateTime & GetCreateDate() const
Definition: User.h:281
User & AddTags(const Tag &value)
Definition: User.h:532
bool PathHasBeenSet() const
Definition: User.h:61
void SetUserId(const Aws::String &value)
Definition: User.h:169
void SetPasswordLastUsed(Aws::Utils::DateTime &&value)
Definition: User.h:388
void SetTags(Aws::Vector< Tag > &&value)
Definition: User.h:508
const Aws::String & GetUserId() const
Definition: User.h:153
bool UserIdHasBeenSet() const
Definition: User.h:161
User & AddTags(Tag &&value)
Definition: User.h:540
void SetPath(const Aws::String &value)
Definition: User.h:68
void SetUserName(const char *value)
Definition: User.h:129
void SetArn(const Aws::String &value)
Definition: User.h:234
void SetUserId(Aws::String &&value)
Definition: User.h:177
const Aws::String & GetUserName() const
Definition: User.h:109
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
User & WithTags(const Aws::Vector< Tag > &value)
Definition: User.h:516
const Aws::String & GetPath() const
Definition: User.h:54
User & WithUserName(Aws::String &&value)
Definition: User.h:139
User & WithUserId(const char *value)
Definition: User.h:209
User & WithArn(const Aws::String &value)
Definition: User.h:258
User & WithPermissionsBoundary(AttachedPermissionsBoundary &&value)
Definition: User.h:475
int index
Definition: cJSON.h:171
bool UserNameHasBeenSet() const
Definition: User.h:114
User & WithPasswordLastUsed(const Aws::Utils::DateTime &value)
Definition: User.h:407
void SetUserName(const Aws::String &value)
Definition: User.h:119
void SetArn(Aws::String &&value)
Definition: User.h:242
const Aws::Vector< Tag > & GetTags() const
Definition: User.h:484
User & WithUserId(const Aws::String &value)
Definition: User.h:193
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
void SetUserName(Aws::String &&value)
Definition: User.h:124
User & WithUserId(Aws::String &&value)
Definition: User.h:201
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: User.h:299
User & WithUserName(const char *value)
Definition: User.h:144
User & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: User.h:311
User & WithArn(Aws::String &&value)
Definition: User.h:266
User & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: User.h:305
User & WithPermissionsBoundary(const AttachedPermissionsBoundary &value)
Definition: User.h:467
User & WithPath(Aws::String &&value)
Definition: User.h:96
void SetPath(const char *value)
Definition: User.h:82
User & WithPath(const char *value)
Definition: User.h:103
void SetPath(Aws::String &&value)
Definition: User.h:75
void SetUserId(const char *value)
Definition: User.h:185
User & WithUserName(const Aws::String &value)
Definition: User.h:134
void SetPermissionsBoundary(const AttachedPermissionsBoundary &value)
Definition: User.h:451
bool ArnHasBeenSet() const
Definition: User.h:226
void SetPermissionsBoundary(AttachedPermissionsBoundary &&value)
Definition: User.h:459
bool PermissionsBoundaryHasBeenSet() const
Definition: User.h:443
void SetPasswordLastUsed(const Aws::Utils::DateTime &value)
Definition: User.h:369
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetPasswordLastUsed() const
Definition: User.h:331
User & WithPath(const Aws::String &value)
Definition: User.h:89
void SetTags(const Aws::Vector< Tag > &value)
Definition: User.h:500
const Aws::String & GetArn() const
Definition: User.h:218
User & WithPasswordLastUsed(Aws::Utils::DateTime &&value)
Definition: User.h:426
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
bool TagsHasBeenSet() const
Definition: User.h:492
bool CreateDateHasBeenSet() const
Definition: User.h:287
User & WithTags(Aws::Vector< Tag > &&value)
Definition: User.h:524
const AttachedPermissionsBoundary & GetPermissionsBoundary() const
Definition: User.h:435
void SetArn(const char *value)
Definition: User.h:250
User & WithArn(const char *value)
Definition: User.h:274
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: User.h:293
bool PasswordLastUsedHasBeenSet() const
Definition: User.h:350