AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsIamUserDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsIamAttachedManagedPolicy.h>
11#include <aws/securityhub/model/AwsIamPermissionsBoundary.h>
12#include <aws/securityhub/model/AwsIamUserPolicy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
32 public:
33 AWS_SECURITYHUB_API AwsIamUserDetails() = default;
34 AWS_SECURITYHUB_API AwsIamUserDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<AwsIamAttachedManagedPolicy>& GetAttachedManagedPolicies() const { return m_attachedManagedPolicies; }
43 inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; }
44 template <typename AttachedManagedPoliciesT = Aws::Vector<AwsIamAttachedManagedPolicy>>
45 void SetAttachedManagedPolicies(AttachedManagedPoliciesT&& value) {
46 m_attachedManagedPoliciesHasBeenSet = true;
47 m_attachedManagedPolicies = std::forward<AttachedManagedPoliciesT>(value);
48 }
49 template <typename AttachedManagedPoliciesT = Aws::Vector<AwsIamAttachedManagedPolicy>>
50 AwsIamUserDetails& WithAttachedManagedPolicies(AttachedManagedPoliciesT&& value) {
51 SetAttachedManagedPolicies(std::forward<AttachedManagedPoliciesT>(value));
52 return *this;
53 }
54 template <typename AttachedManagedPoliciesT = AwsIamAttachedManagedPolicy>
55 AwsIamUserDetails& AddAttachedManagedPolicies(AttachedManagedPoliciesT&& value) {
56 m_attachedManagedPoliciesHasBeenSet = true;
57 m_attachedManagedPolicies.emplace_back(std::forward<AttachedManagedPoliciesT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::String& GetCreateDate() const { return m_createDate; }
69 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
70 template <typename CreateDateT = Aws::String>
71 void SetCreateDate(CreateDateT&& value) {
72 m_createDateHasBeenSet = true;
73 m_createDate = std::forward<CreateDateT>(value);
74 }
75 template <typename CreateDateT = Aws::String>
76 AwsIamUserDetails& WithCreateDate(CreateDateT&& value) {
77 SetCreateDate(std::forward<CreateDateT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Vector<Aws::String>& GetGroupList() const { return m_groupList; }
87 inline bool GroupListHasBeenSet() const { return m_groupListHasBeenSet; }
88 template <typename GroupListT = Aws::Vector<Aws::String>>
89 void SetGroupList(GroupListT&& value) {
90 m_groupListHasBeenSet = true;
91 m_groupList = std::forward<GroupListT>(value);
92 }
93 template <typename GroupListT = Aws::Vector<Aws::String>>
94 AwsIamUserDetails& WithGroupList(GroupListT&& value) {
95 SetGroupList(std::forward<GroupListT>(value));
96 return *this;
97 }
98 template <typename GroupListT = Aws::String>
99 AwsIamUserDetails& AddGroupList(GroupListT&& value) {
100 m_groupListHasBeenSet = true;
101 m_groupList.emplace_back(std::forward<GroupListT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetPath() const { return m_path; }
111 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
112 template <typename PathT = Aws::String>
113 void SetPath(PathT&& value) {
114 m_pathHasBeenSet = true;
115 m_path = std::forward<PathT>(value);
116 }
117 template <typename PathT = Aws::String>
118 AwsIamUserDetails& WithPath(PathT&& value) {
119 SetPath(std::forward<PathT>(value));
120 return *this;
121 }
123
125
128 inline const AwsIamPermissionsBoundary& GetPermissionsBoundary() const { return m_permissionsBoundary; }
129 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
130 template <typename PermissionsBoundaryT = AwsIamPermissionsBoundary>
131 void SetPermissionsBoundary(PermissionsBoundaryT&& value) {
132 m_permissionsBoundaryHasBeenSet = true;
133 m_permissionsBoundary = std::forward<PermissionsBoundaryT>(value);
134 }
135 template <typename PermissionsBoundaryT = AwsIamPermissionsBoundary>
136 AwsIamUserDetails& WithPermissionsBoundary(PermissionsBoundaryT&& value) {
137 SetPermissionsBoundary(std::forward<PermissionsBoundaryT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetUserId() const { return m_userId; }
147 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
148 template <typename UserIdT = Aws::String>
149 void SetUserId(UserIdT&& value) {
150 m_userIdHasBeenSet = true;
151 m_userId = std::forward<UserIdT>(value);
152 }
153 template <typename UserIdT = Aws::String>
154 AwsIamUserDetails& WithUserId(UserIdT&& value) {
155 SetUserId(std::forward<UserIdT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetUserName() const { return m_userName; }
165 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
166 template <typename UserNameT = Aws::String>
167 void SetUserName(UserNameT&& value) {
168 m_userNameHasBeenSet = true;
169 m_userName = std::forward<UserNameT>(value);
170 }
171 template <typename UserNameT = Aws::String>
172 AwsIamUserDetails& WithUserName(UserNameT&& value) {
173 SetUserName(std::forward<UserNameT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Vector<AwsIamUserPolicy>& GetUserPolicyList() const { return m_userPolicyList; }
183 inline bool UserPolicyListHasBeenSet() const { return m_userPolicyListHasBeenSet; }
184 template <typename UserPolicyListT = Aws::Vector<AwsIamUserPolicy>>
185 void SetUserPolicyList(UserPolicyListT&& value) {
186 m_userPolicyListHasBeenSet = true;
187 m_userPolicyList = std::forward<UserPolicyListT>(value);
188 }
189 template <typename UserPolicyListT = Aws::Vector<AwsIamUserPolicy>>
190 AwsIamUserDetails& WithUserPolicyList(UserPolicyListT&& value) {
191 SetUserPolicyList(std::forward<UserPolicyListT>(value));
192 return *this;
193 }
194 template <typename UserPolicyListT = AwsIamUserPolicy>
195 AwsIamUserDetails& AddUserPolicyList(UserPolicyListT&& value) {
196 m_userPolicyListHasBeenSet = true;
197 m_userPolicyList.emplace_back(std::forward<UserPolicyListT>(value));
198 return *this;
199 }
201 private:
202 Aws::Vector<AwsIamAttachedManagedPolicy> m_attachedManagedPolicies;
203
204 Aws::String m_createDate;
205
206 Aws::Vector<Aws::String> m_groupList;
207
208 Aws::String m_path;
209
210 AwsIamPermissionsBoundary m_permissionsBoundary;
211
212 Aws::String m_userId;
213
214 Aws::String m_userName;
215
216 Aws::Vector<AwsIamUserPolicy> m_userPolicyList;
217 bool m_attachedManagedPoliciesHasBeenSet = false;
218 bool m_createDateHasBeenSet = false;
219 bool m_groupListHasBeenSet = false;
220 bool m_pathHasBeenSet = false;
221 bool m_permissionsBoundaryHasBeenSet = false;
222 bool m_userIdHasBeenSet = false;
223 bool m_userNameHasBeenSet = false;
224 bool m_userPolicyListHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace SecurityHub
229} // namespace Aws
void SetPermissionsBoundary(PermissionsBoundaryT &&value)
AWS_SECURITYHUB_API AwsIamUserDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamUserDetails & WithUserName(UserNameT &&value)
AwsIamUserDetails & AddAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
AwsIamUserDetails & WithGroupList(GroupListT &&value)
AwsIamUserDetails & WithCreateDate(CreateDateT &&value)
void SetUserPolicyList(UserPolicyListT &&value)
const Aws::Vector< AwsIamAttachedManagedPolicy > & GetAttachedManagedPolicies() const
const Aws::Vector< AwsIamUserPolicy > & GetUserPolicyList() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsIamUserDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsIamUserDetails & WithAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
AwsIamUserDetails & WithPath(PathT &&value)
AwsIamUserDetails & WithUserPolicyList(UserPolicyListT &&value)
AwsIamUserDetails & AddUserPolicyList(UserPolicyListT &&value)
void SetAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
AWS_SECURITYHUB_API AwsIamUserDetails()=default
const AwsIamPermissionsBoundary & GetPermissionsBoundary() const
AwsIamUserDetails & WithUserId(UserIdT &&value)
AwsIamUserDetails & AddGroupList(GroupListT &&value)
AwsIamUserDetails & WithPermissionsBoundary(PermissionsBoundaryT &&value)
const Aws::Vector< Aws::String > & GetGroupList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue