AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserDetail.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/iam/model/AttachedPermissionsBoundary.h>
13#include <aws/iam/model/PolicyDetail.h>
14#include <aws/iam/model/AttachedPolicy.h>
15#include <aws/iam/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace IAM
28{
29namespace Model
30{
31
41 {
42 public:
43 AWS_IAM_API UserDetail();
44 AWS_IAM_API UserDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_IAM_API UserDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
57 inline const Aws::String& GetPath() const{ return m_path; }
58 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
59 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
60 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
61 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
62 inline UserDetail& WithPath(const Aws::String& value) { SetPath(value); return *this;}
63 inline UserDetail& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
64 inline UserDetail& WithPath(const char* value) { SetPath(value); return *this;}
66
68
71 inline const Aws::String& GetUserName() const{ return m_userName; }
72 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
73 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
74 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
75 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
76 inline UserDetail& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
77 inline UserDetail& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
78 inline UserDetail& WithUserName(const char* value) { SetUserName(value); return *this;}
80
82
88 inline const Aws::String& GetUserId() const{ return m_userId; }
89 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
90 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
91 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
92 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
93 inline UserDetail& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
94 inline UserDetail& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
95 inline UserDetail& WithUserId(const char* value) { SetUserId(value); return *this;}
97
99
100 inline const Aws::String& GetArn() const{ return m_arn; }
101 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
102 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
103 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
104 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
105 inline UserDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
106 inline UserDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
107 inline UserDetail& WithArn(const char* value) { SetArn(value); return *this;}
109
111
115 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
116 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
117 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
118 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
119 inline UserDetail& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
120 inline UserDetail& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
122
124
127 inline const Aws::Vector<PolicyDetail>& GetUserPolicyList() const{ return m_userPolicyList; }
128 inline bool UserPolicyListHasBeenSet() const { return m_userPolicyListHasBeenSet; }
129 inline void SetUserPolicyList(const Aws::Vector<PolicyDetail>& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = value; }
130 inline void SetUserPolicyList(Aws::Vector<PolicyDetail>&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = std::move(value); }
131 inline UserDetail& WithUserPolicyList(const Aws::Vector<PolicyDetail>& value) { SetUserPolicyList(value); return *this;}
132 inline UserDetail& WithUserPolicyList(Aws::Vector<PolicyDetail>&& value) { SetUserPolicyList(std::move(value)); return *this;}
133 inline UserDetail& AddUserPolicyList(const PolicyDetail& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(value); return *this; }
134 inline UserDetail& AddUserPolicyList(PolicyDetail&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(std::move(value)); return *this; }
136
138
141 inline const Aws::Vector<Aws::String>& GetGroupList() const{ return m_groupList; }
142 inline bool GroupListHasBeenSet() const { return m_groupListHasBeenSet; }
143 inline void SetGroupList(const Aws::Vector<Aws::String>& value) { m_groupListHasBeenSet = true; m_groupList = value; }
144 inline void SetGroupList(Aws::Vector<Aws::String>&& value) { m_groupListHasBeenSet = true; m_groupList = std::move(value); }
145 inline UserDetail& WithGroupList(const Aws::Vector<Aws::String>& value) { SetGroupList(value); return *this;}
146 inline UserDetail& WithGroupList(Aws::Vector<Aws::String>&& value) { SetGroupList(std::move(value)); return *this;}
147 inline UserDetail& AddGroupList(const Aws::String& value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; }
148 inline UserDetail& AddGroupList(Aws::String&& value) { m_groupListHasBeenSet = true; m_groupList.push_back(std::move(value)); return *this; }
149 inline UserDetail& AddGroupList(const char* value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; }
151
153
156 inline const Aws::Vector<AttachedPolicy>& GetAttachedManagedPolicies() const{ return m_attachedManagedPolicies; }
157 inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; }
158 inline void SetAttachedManagedPolicies(const Aws::Vector<AttachedPolicy>& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = value; }
159 inline void SetAttachedManagedPolicies(Aws::Vector<AttachedPolicy>&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::move(value); }
162 inline UserDetail& AddAttachedManagedPolicies(const AttachedPolicy& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(value); return *this; }
163 inline UserDetail& AddAttachedManagedPolicies(AttachedPolicy&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(std::move(value)); return *this; }
165
167
173 inline const AttachedPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
174 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
175 inline void SetPermissionsBoundary(const AttachedPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
176 inline void SetPermissionsBoundary(AttachedPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
180
182
188 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
191 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
192 inline UserDetail& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
193 inline UserDetail& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
194 inline UserDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
195 inline UserDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
197 private:
198
199 Aws::String m_path;
200 bool m_pathHasBeenSet = false;
201
202 Aws::String m_userName;
203 bool m_userNameHasBeenSet = false;
204
205 Aws::String m_userId;
206 bool m_userIdHasBeenSet = false;
207
208 Aws::String m_arn;
209 bool m_arnHasBeenSet = false;
210
211 Aws::Utils::DateTime m_createDate;
212 bool m_createDateHasBeenSet = false;
213
214 Aws::Vector<PolicyDetail> m_userPolicyList;
215 bool m_userPolicyListHasBeenSet = false;
216
217 Aws::Vector<Aws::String> m_groupList;
218 bool m_groupListHasBeenSet = false;
219
220 Aws::Vector<AttachedPolicy> m_attachedManagedPolicies;
221 bool m_attachedManagedPoliciesHasBeenSet = false;
222
223 AttachedPermissionsBoundary m_permissionsBoundary;
224 bool m_permissionsBoundaryHasBeenSet = false;
225
226 Aws::Vector<Tag> m_tags;
227 bool m_tagsHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace IAM
232} // namespace Aws
void SetPermissionsBoundary(AttachedPermissionsBoundary &&value)
Definition UserDetail.h:176
void SetTags(Aws::Vector< Tag > &&value)
Definition UserDetail.h:191
UserDetail & WithArn(Aws::String &&value)
Definition UserDetail.h:106
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition UserDetail.h:118
bool GroupListHasBeenSet() const
Definition UserDetail.h:142
const Aws::String & GetUserId() const
Definition UserDetail.h:88
bool UserPolicyListHasBeenSet() const
Definition UserDetail.h:128
void SetGroupList(Aws::Vector< Aws::String > &&value)
Definition UserDetail.h:144
UserDetail & WithUserId(const char *value)
Definition UserDetail.h:95
UserDetail & WithArn(const Aws::String &value)
Definition UserDetail.h:105
void SetPath(Aws::String &&value)
Definition UserDetail.h:60
UserDetail & WithUserPolicyList(const Aws::Vector< PolicyDetail > &value)
Definition UserDetail.h:131
UserDetail & WithTags(const Aws::Vector< Tag > &value)
Definition UserDetail.h:192
bool UserNameHasBeenSet() const
Definition UserDetail.h:72
UserDetail & WithPath(const char *value)
Definition UserDetail.h:64
void SetArn(Aws::String &&value)
Definition UserDetail.h:103
void SetArn(const Aws::String &value)
Definition UserDetail.h:102
const Aws::String & GetArn() const
Definition UserDetail.h:100
const Aws::String & GetUserName() const
Definition UserDetail.h:71
AWS_IAM_API UserDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AttachedManagedPoliciesHasBeenSet() const
Definition UserDetail.h:157
UserDetail & WithPermissionsBoundary(AttachedPermissionsBoundary &&value)
Definition UserDetail.h:178
const Aws::String & GetPath() const
Definition UserDetail.h:57
UserDetail & WithPath(Aws::String &&value)
Definition UserDetail.h:63
const AttachedPermissionsBoundary & GetPermissionsBoundary() const
Definition UserDetail.h:173
const Aws::Vector< AttachedPolicy > & GetAttachedManagedPolicies() const
Definition UserDetail.h:156
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAttachedManagedPolicies(const Aws::Vector< AttachedPolicy > &value)
Definition UserDetail.h:158
bool CreateDateHasBeenSet() const
Definition UserDetail.h:116
void SetUserId(Aws::String &&value)
Definition UserDetail.h:91
void SetPath(const Aws::String &value)
Definition UserDetail.h:59
UserDetail & WithArn(const char *value)
Definition UserDetail.h:107
UserDetail & AddTags(Tag &&value)
Definition UserDetail.h:195
void SetUserName(Aws::String &&value)
Definition UserDetail.h:74
const Aws::Utils::DateTime & GetCreateDate() const
Definition UserDetail.h:115
const Aws::Vector< PolicyDetail > & GetUserPolicyList() const
Definition UserDetail.h:127
UserDetail & WithUserId(Aws::String &&value)
Definition UserDetail.h:94
void SetUserPolicyList(Aws::Vector< PolicyDetail > &&value)
Definition UserDetail.h:130
UserDetail & WithUserName(const Aws::String &value)
Definition UserDetail.h:76
UserDetail & WithUserId(const Aws::String &value)
Definition UserDetail.h:93
bool UserIdHasBeenSet() const
Definition UserDetail.h:89
UserDetail & WithPath(const Aws::String &value)
Definition UserDetail.h:62
UserDetail & AddGroupList(Aws::String &&value)
Definition UserDetail.h:148
UserDetail & WithCreateDate(Aws::Utils::DateTime &&value)
Definition UserDetail.h:120
AWS_IAM_API UserDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
UserDetail & AddGroupList(const char *value)
Definition UserDetail.h:149
UserDetail & AddTags(const Tag &value)
Definition UserDetail.h:194
void SetUserName(const char *value)
Definition UserDetail.h:75
UserDetail & WithPermissionsBoundary(const AttachedPermissionsBoundary &value)
Definition UserDetail.h:177
void SetPermissionsBoundary(const AttachedPermissionsBoundary &value)
Definition UserDetail.h:175
UserDetail & AddGroupList(const Aws::String &value)
Definition UserDetail.h:147
void SetUserPolicyList(const Aws::Vector< PolicyDetail > &value)
Definition UserDetail.h:129
void SetUserId(const char *value)
Definition UserDetail.h:92
void SetPath(const char *value)
Definition UserDetail.h:61
const Aws::Vector< Aws::String > & GetGroupList() const
Definition UserDetail.h:141
UserDetail & AddAttachedManagedPolicies(AttachedPolicy &&value)
Definition UserDetail.h:163
void SetUserName(const Aws::String &value)
Definition UserDetail.h:73
UserDetail & WithAttachedManagedPolicies(const Aws::Vector< AttachedPolicy > &value)
Definition UserDetail.h:160
UserDetail & AddUserPolicyList(PolicyDetail &&value)
Definition UserDetail.h:134
bool PermissionsBoundaryHasBeenSet() const
Definition UserDetail.h:174
void SetUserId(const Aws::String &value)
Definition UserDetail.h:90
UserDetail & WithCreateDate(const Aws::Utils::DateTime &value)
Definition UserDetail.h:119
UserDetail & WithGroupList(Aws::Vector< Aws::String > &&value)
Definition UserDetail.h:146
void SetTags(const Aws::Vector< Tag > &value)
Definition UserDetail.h:190
UserDetail & WithUserName(Aws::String &&value)
Definition UserDetail.h:77
UserDetail & WithGroupList(const Aws::Vector< Aws::String > &value)
Definition UserDetail.h:145
void SetGroupList(const Aws::Vector< Aws::String > &value)
Definition UserDetail.h:143
void SetArn(const char *value)
Definition UserDetail.h:104
const Aws::Vector< Tag > & GetTags() const
Definition UserDetail.h:188
UserDetail & WithAttachedManagedPolicies(Aws::Vector< AttachedPolicy > &&value)
Definition UserDetail.h:161
UserDetail & AddUserPolicyList(const PolicyDetail &value)
Definition UserDetail.h:133
UserDetail & WithUserName(const char *value)
Definition UserDetail.h:78
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition UserDetail.h:117
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
UserDetail & AddAttachedManagedPolicies(const AttachedPolicy &value)
Definition UserDetail.h:162
void SetAttachedManagedPolicies(Aws::Vector< AttachedPolicy > &&value)
Definition UserDetail.h:159
UserDetail & WithTags(Aws::Vector< Tag > &&value)
Definition UserDetail.h:193
UserDetail & WithUserPolicyList(Aws::Vector< PolicyDetail > &&value)
Definition UserDetail.h:132
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