AWS SDK for C++  1.9.104
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);
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 
55  inline const Aws::String& GetPath() const{ return m_path; }
56 
63  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
64 
71  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
72 
79  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
80 
87  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
88 
95  inline User& WithPath(const Aws::String& value) { SetPath(value); return *this;}
96 
103  inline User& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
104 
111  inline User& WithPath(const char* value) { SetPath(value); return *this;}
112 
113 
117  inline const Aws::String& GetUserName() const{ return m_userName; }
118 
122  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
123 
127  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
128 
132  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
133 
137  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
138 
142  inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
143 
147  inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
148 
152  inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
153 
154 
161  inline const Aws::String& GetUserId() const{ return m_userId; }
162 
169  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
170 
177  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
178 
185  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
186 
193  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
194 
201  inline User& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
202 
209  inline User& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
210 
217  inline User& WithUserId(const char* value) { SetUserId(value); return *this;}
218 
219 
226  inline const Aws::String& GetArn() const{ return m_arn; }
227 
234  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
235 
242  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
243 
250  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
251 
258  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
259 
266  inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
267 
274  inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
275 
282  inline User& WithArn(const char* value) { SetArn(value); return *this;}
283 
284 
289  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
290 
295  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
296 
301  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
302 
307  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
308 
313  inline User& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
314 
319  inline User& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
320 
321 
339  inline const Aws::Utils::DateTime& GetPasswordLastUsed() const{ return m_passwordLastUsed; }
340 
358  inline bool PasswordLastUsedHasBeenSet() const { return m_passwordLastUsedHasBeenSet; }
359 
377  inline void SetPasswordLastUsed(const Aws::Utils::DateTime& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = value; }
378 
396  inline void SetPasswordLastUsed(Aws::Utils::DateTime&& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = std::move(value); }
397 
415  inline User& WithPasswordLastUsed(const Aws::Utils::DateTime& value) { SetPasswordLastUsed(value); return *this;}
416 
434  inline User& WithPasswordLastUsed(Aws::Utils::DateTime&& value) { SetPasswordLastUsed(std::move(value)); return *this;}
435 
436 
442  inline const AttachedPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
443 
449  inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
450 
456  inline void SetPermissionsBoundary(const AttachedPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
457 
463  inline void SetPermissionsBoundary(AttachedPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
464 
470  inline User& WithPermissionsBoundary(const AttachedPermissionsBoundary& value) { SetPermissionsBoundary(value); return *this;}
471 
477  inline User& WithPermissionsBoundary(AttachedPermissionsBoundary&& value) { SetPermissionsBoundary(std::move(value)); return *this;}
478 
479 
486  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
487 
494  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
495 
502  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
503 
510  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
511 
518  inline User& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
519 
526  inline User& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
527 
534  inline User& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
535 
542  inline User& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
543 
544  private:
545 
546  Aws::String m_path;
547  bool m_pathHasBeenSet;
548 
549  Aws::String m_userName;
550  bool m_userNameHasBeenSet;
551 
552  Aws::String m_userId;
553  bool m_userIdHasBeenSet;
554 
555  Aws::String m_arn;
556  bool m_arnHasBeenSet;
557 
558  Aws::Utils::DateTime m_createDate;
559  bool m_createDateHasBeenSet;
560 
561  Aws::Utils::DateTime m_passwordLastUsed;
562  bool m_passwordLastUsedHasBeenSet;
563 
564  AttachedPermissionsBoundary m_permissionsBoundary;
565  bool m_permissionsBoundaryHasBeenSet;
566 
567  Aws::Vector<Tag> m_tags;
568  bool m_tagsHasBeenSet;
569  };
570 
571 } // namespace Model
572 } // namespace IAM
573 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IAM::Model::User::SetUserId
void SetUserId(Aws::String &&value)
Definition: User.h:185
Aws::IAM::Model::User::GetUserName
const Aws::String & GetUserName() const
Definition: User.h:117
Aws::IAM::Model::User::WithUserName
User & WithUserName(const char *value)
Definition: User.h:152
Aws::IAM::Model::User::WithPath
User & WithPath(const char *value)
Definition: User.h:111
Tag.h
Aws::IAM::Model::User::PasswordLastUsedHasBeenSet
bool PasswordLastUsedHasBeenSet() const
Definition: User.h:358
Aws::IAM::Model::User::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: User.h:502
Aws::IAM::Model::User::GetArn
const Aws::String & GetArn() const
Definition: User.h:226
Aws::IAM::Model::User::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::IAM::Model::User::SetUserName
void SetUserName(const char *value)
Definition: User.h:137
Aws::IAM::Model::User::GetPermissionsBoundary
const AttachedPermissionsBoundary & GetPermissionsBoundary() const
Definition: User.h:442
Aws::IAM::Model::User::SetPasswordLastUsed
void SetPasswordLastUsed(const Aws::Utils::DateTime &value)
Definition: User.h:377
Aws::IAM::Model::User::GetUserId
const Aws::String & GetUserId() const
Definition: User.h:161
DateTime.h
Aws::IAM::Model::User::SetArn
void SetArn(Aws::String &&value)
Definition: User.h:250
Aws::IAM::Model::User::AddTags
User & AddTags(const Tag &value)
Definition: User.h:534
Aws::IAM::Model::User::WithArn
User & WithArn(Aws::String &&value)
Definition: User.h:274
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::IAM::Model::User::WithTags
User & WithTags(Aws::Vector< Tag > &&value)
Definition: User.h:526
AWSVector.h
Aws::IAM::Model::User::SetCreateDate
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: User.h:307
Aws::IAM::Model::User::PermissionsBoundaryHasBeenSet
bool PermissionsBoundaryHasBeenSet() const
Definition: User.h:449
Aws::IAM::Model::User::WithCreateDate
User & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: User.h:313
Aws::IAM::Model::User::SetUserName
void SetUserName(const Aws::String &value)
Definition: User.h:127
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::User::WithUserId
User & WithUserId(const char *value)
Definition: User.h:217
Aws::IAM::Model::User::User
User()
Aws::IAM::Model::User::SetPath
void SetPath(Aws::String &&value)
Definition: User.h:79
Aws::IAM::Model::User::CreateDateHasBeenSet
bool CreateDateHasBeenSet() const
Definition: User.h:295
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::IAM::Model::User::WithPath
User & WithPath(const Aws::String &value)
Definition: User.h:95
Aws::IAM::Model::User::GetPath
const Aws::String & GetPath() const
Definition: User.h:55
Aws::IAM::Model::User::WithPermissionsBoundary
User & WithPermissionsBoundary(AttachedPermissionsBoundary &&value)
Definition: User.h:477
Aws::IAM::Model::User::SetUserName
void SetUserName(Aws::String &&value)
Definition: User.h:132
Aws::IAM::Model::User::AddTags
User & AddTags(Tag &&value)
Definition: User.h:542
Aws::IAM::Model::User::WithArn
User & WithArn(const char *value)
Definition: User.h:282
AttachedPermissionsBoundary.h
Aws::IAM::Model::User::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: User.h:486
Aws::IAM::Model::User::SetUserId
void SetUserId(const Aws::String &value)
Definition: User.h:177
Aws::IAM::Model::User::SetPasswordLastUsed
void SetPasswordLastUsed(Aws::Utils::DateTime &&value)
Definition: User.h:396
Aws::IAM::Model::User::GetCreateDate
const Aws::Utils::DateTime & GetCreateDate() const
Definition: User.h:289
AWSString.h
Aws::IAM::Model::User::WithTags
User & WithTags(const Aws::Vector< Tag > &value)
Definition: User.h:518
Aws::IAM::Model::User::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: User.h:234
Aws::IAM::Model::User::SetPermissionsBoundary
void SetPermissionsBoundary(AttachedPermissionsBoundary &&value)
Definition: User.h:463
Aws::IAM::Model::User::SetPath
void SetPath(const char *value)
Definition: User.h:87
Aws::IAM::Model::User::WithPasswordLastUsed
User & WithPasswordLastUsed(Aws::Utils::DateTime &&value)
Definition: User.h:434
Aws::IAM::Model::User::WithPermissionsBoundary
User & WithPermissionsBoundary(const AttachedPermissionsBoundary &value)
Definition: User.h:470
Aws::IAM::Model::User::SetPermissionsBoundary
void SetPermissionsBoundary(const AttachedPermissionsBoundary &value)
Definition: User.h:456
Aws::IAM::Model::User::WithUserId
User & WithUserId(Aws::String &&value)
Definition: User.h:209
Aws::IAM::Model::User::PathHasBeenSet
bool PathHasBeenSet() const
Definition: User.h:63
Aws::IAM::Model::User::WithCreateDate
User & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: User.h:319
Aws::IAM::Model::User::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: User.h:169
Aws::IAM::Model::User::SetArn
void SetArn(const char *value)
Definition: User.h:258
IAM_EXPORTS.h
Aws::IAM::Model::User::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: User.h:122
Aws::IAM::Model::User::WithUserName
User & WithUserName(const Aws::String &value)
Definition: User.h:142
Aws::IAM::Model::User::SetPath
void SetPath(const Aws::String &value)
Definition: User.h:71
Aws::IAM::Model::User::WithPasswordLastUsed
User & WithPasswordLastUsed(const Aws::Utils::DateTime &value)
Definition: User.h:415
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::User::SetCreateDate
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: User.h:301
Aws::IAM::Model::User::User
User(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::IAM::Model::User::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::IAM::Model::Tag
Definition: Tag.h:35
Aws::IAM::Model::User::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: User.h:494
Aws::IAM::Model::User::SetArn
void SetArn(const Aws::String &value)
Definition: User.h:242
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::IAM::Model::AttachedPermissionsBoundary
Definition: AttachedPermissionsBoundary.h:39
Aws::IAM::Model::User::operator=
User & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::IAM::Model::User::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: User.h:510
Aws::IAM::Model::User::WithUserId
User & WithUserId(const Aws::String &value)
Definition: User.h:201
Aws::IAM::Model::User::WithArn
User & WithArn(const Aws::String &value)
Definition: User.h:266
Aws::IAM::Model::User::GetPasswordLastUsed
const Aws::Utils::DateTime & GetPasswordLastUsed() const
Definition: User.h:339
Aws::IAM::Model::User::WithUserName
User & WithUserName(Aws::String &&value)
Definition: User.h:147
Aws::IAM::Model::User::SetUserId
void SetUserId(const char *value)
Definition: User.h:193
Aws::IAM::Model::User::WithPath
User & WithPath(Aws::String &&value)
Definition: User.h:103
Aws::IAM::Model::User
Definition: User.h:39