AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ProfileDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
11#include <aws/rolesanywhere/model/AttributeMapping.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace RolesAnywhere {
23namespace Model {
24
32 public:
33 AWS_ROLESANYWHERE_API ProfileDetail() = default;
34 AWS_ROLESANYWHERE_API ProfileDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROLESANYWHERE_API ProfileDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetProfileId() const { return m_profileId; }
43 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
44 template <typename ProfileIdT = Aws::String>
45 void SetProfileId(ProfileIdT&& value) {
46 m_profileIdHasBeenSet = true;
47 m_profileId = std::forward<ProfileIdT>(value);
48 }
49 template <typename ProfileIdT = Aws::String>
50 ProfileDetail& WithProfileId(ProfileIdT&& value) {
51 SetProfileId(std::forward<ProfileIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
61 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
62 template <typename ProfileArnT = Aws::String>
63 void SetProfileArn(ProfileArnT&& value) {
64 m_profileArnHasBeenSet = true;
65 m_profileArn = std::forward<ProfileArnT>(value);
66 }
67 template <typename ProfileArnT = Aws::String>
68 ProfileDetail& WithProfileArn(ProfileArnT&& value) {
69 SetProfileArn(std::forward<ProfileArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 ProfileDetail& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
97 inline bool GetRequireInstanceProperties() const { return m_requireInstanceProperties; }
98 inline bool RequireInstancePropertiesHasBeenSet() const { return m_requireInstancePropertiesHasBeenSet; }
99 inline void SetRequireInstanceProperties(bool value) {
100 m_requireInstancePropertiesHasBeenSet = true;
101 m_requireInstanceProperties = value;
102 }
105 return *this;
106 }
108
110
113 inline bool GetEnabled() const { return m_enabled; }
114 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
115 inline void SetEnabled(bool value) {
116 m_enabledHasBeenSet = true;
117 m_enabled = value;
118 }
119 inline ProfileDetail& WithEnabled(bool value) {
120 SetEnabled(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
130 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
131 template <typename CreatedByT = Aws::String>
132 void SetCreatedBy(CreatedByT&& value) {
133 m_createdByHasBeenSet = true;
134 m_createdBy = std::forward<CreatedByT>(value);
135 }
136 template <typename CreatedByT = Aws::String>
137 ProfileDetail& WithCreatedBy(CreatedByT&& value) {
138 SetCreatedBy(std::forward<CreatedByT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::String& GetSessionPolicy() const { return m_sessionPolicy; }
149 inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; }
150 template <typename SessionPolicyT = Aws::String>
151 void SetSessionPolicy(SessionPolicyT&& value) {
152 m_sessionPolicyHasBeenSet = true;
153 m_sessionPolicy = std::forward<SessionPolicyT>(value);
154 }
155 template <typename SessionPolicyT = Aws::String>
156 ProfileDetail& WithSessionPolicy(SessionPolicyT&& value) {
157 SetSessionPolicy(std::forward<SessionPolicyT>(value));
158 return *this;
159 }
161
163
167 inline const Aws::Vector<Aws::String>& GetRoleArns() const { return m_roleArns; }
168 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
169 template <typename RoleArnsT = Aws::Vector<Aws::String>>
170 void SetRoleArns(RoleArnsT&& value) {
171 m_roleArnsHasBeenSet = true;
172 m_roleArns = std::forward<RoleArnsT>(value);
173 }
174 template <typename RoleArnsT = Aws::Vector<Aws::String>>
175 ProfileDetail& WithRoleArns(RoleArnsT&& value) {
176 SetRoleArns(std::forward<RoleArnsT>(value));
177 return *this;
178 }
179 template <typename RoleArnsT = Aws::String>
180 ProfileDetail& AddRoleArns(RoleArnsT&& value) {
181 m_roleArnsHasBeenSet = true;
182 m_roleArns.emplace_back(std::forward<RoleArnsT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Vector<Aws::String>& GetManagedPolicyArns() const { return m_managedPolicyArns; }
193 inline bool ManagedPolicyArnsHasBeenSet() const { return m_managedPolicyArnsHasBeenSet; }
194 template <typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
195 void SetManagedPolicyArns(ManagedPolicyArnsT&& value) {
196 m_managedPolicyArnsHasBeenSet = true;
197 m_managedPolicyArns = std::forward<ManagedPolicyArnsT>(value);
198 }
199 template <typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
200 ProfileDetail& WithManagedPolicyArns(ManagedPolicyArnsT&& value) {
201 SetManagedPolicyArns(std::forward<ManagedPolicyArnsT>(value));
202 return *this;
203 }
204 template <typename ManagedPolicyArnsT = Aws::String>
205 ProfileDetail& AddManagedPolicyArns(ManagedPolicyArnsT&& value) {
206 m_managedPolicyArnsHasBeenSet = true;
207 m_managedPolicyArns.emplace_back(std::forward<ManagedPolicyArnsT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
217 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
218 template <typename CreatedAtT = Aws::Utils::DateTime>
219 void SetCreatedAt(CreatedAtT&& value) {
220 m_createdAtHasBeenSet = true;
221 m_createdAt = std::forward<CreatedAtT>(value);
222 }
223 template <typename CreatedAtT = Aws::Utils::DateTime>
224 ProfileDetail& WithCreatedAt(CreatedAtT&& value) {
225 SetCreatedAt(std::forward<CreatedAtT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
235 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
236 template <typename UpdatedAtT = Aws::Utils::DateTime>
237 void SetUpdatedAt(UpdatedAtT&& value) {
238 m_updatedAtHasBeenSet = true;
239 m_updatedAt = std::forward<UpdatedAtT>(value);
240 }
241 template <typename UpdatedAtT = Aws::Utils::DateTime>
242 ProfileDetail& WithUpdatedAt(UpdatedAtT&& value) {
243 SetUpdatedAt(std::forward<UpdatedAtT>(value));
244 return *this;
245 }
247
249
256 inline int GetDurationSeconds() const { return m_durationSeconds; }
257 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
258 inline void SetDurationSeconds(int value) {
259 m_durationSecondsHasBeenSet = true;
260 m_durationSeconds = value;
261 }
263 SetDurationSeconds(value);
264 return *this;
265 }
267
269
273 inline bool GetAcceptRoleSessionName() const { return m_acceptRoleSessionName; }
274 inline bool AcceptRoleSessionNameHasBeenSet() const { return m_acceptRoleSessionNameHasBeenSet; }
275 inline void SetAcceptRoleSessionName(bool value) {
276 m_acceptRoleSessionNameHasBeenSet = true;
277 m_acceptRoleSessionName = value;
278 }
281 return *this;
282 }
284
286
289 inline const Aws::Vector<AttributeMapping>& GetAttributeMappings() const { return m_attributeMappings; }
290 inline bool AttributeMappingsHasBeenSet() const { return m_attributeMappingsHasBeenSet; }
291 template <typename AttributeMappingsT = Aws::Vector<AttributeMapping>>
292 void SetAttributeMappings(AttributeMappingsT&& value) {
293 m_attributeMappingsHasBeenSet = true;
294 m_attributeMappings = std::forward<AttributeMappingsT>(value);
295 }
296 template <typename AttributeMappingsT = Aws::Vector<AttributeMapping>>
297 ProfileDetail& WithAttributeMappings(AttributeMappingsT&& value) {
298 SetAttributeMappings(std::forward<AttributeMappingsT>(value));
299 return *this;
300 }
301 template <typename AttributeMappingsT = AttributeMapping>
302 ProfileDetail& AddAttributeMappings(AttributeMappingsT&& value) {
303 m_attributeMappingsHasBeenSet = true;
304 m_attributeMappings.emplace_back(std::forward<AttributeMappingsT>(value));
305 return *this;
306 }
308 private:
309 Aws::String m_profileId;
310
311 Aws::String m_profileArn;
312
313 Aws::String m_name;
314
315 bool m_requireInstanceProperties{false};
316
317 bool m_enabled{false};
318
319 Aws::String m_createdBy;
320
321 Aws::String m_sessionPolicy;
322
323 Aws::Vector<Aws::String> m_roleArns;
324
325 Aws::Vector<Aws::String> m_managedPolicyArns;
326
327 Aws::Utils::DateTime m_createdAt{};
328
329 Aws::Utils::DateTime m_updatedAt{};
330
331 int m_durationSeconds{0};
332
333 bool m_acceptRoleSessionName{false};
334
335 Aws::Vector<AttributeMapping> m_attributeMappings;
336 bool m_profileIdHasBeenSet = false;
337 bool m_profileArnHasBeenSet = false;
338 bool m_nameHasBeenSet = false;
339 bool m_requireInstancePropertiesHasBeenSet = false;
340 bool m_enabledHasBeenSet = false;
341 bool m_createdByHasBeenSet = false;
342 bool m_sessionPolicyHasBeenSet = false;
343 bool m_roleArnsHasBeenSet = false;
344 bool m_managedPolicyArnsHasBeenSet = false;
345 bool m_createdAtHasBeenSet = false;
346 bool m_updatedAtHasBeenSet = false;
347 bool m_durationSecondsHasBeenSet = false;
348 bool m_acceptRoleSessionNameHasBeenSet = false;
349 bool m_attributeMappingsHasBeenSet = false;
350};
351
352} // namespace Model
353} // namespace RolesAnywhere
354} // namespace Aws
ProfileDetail & WithEnabled(bool value)
const Aws::Vector< Aws::String > & GetRoleArns() const
AWS_ROLESANYWHERE_API ProfileDetail(Aws::Utils::Json::JsonView jsonValue)
ProfileDetail & WithProfileId(ProfileIdT &&value)
ProfileDetail & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetProfileId() const
const Aws::String & GetProfileArn() const
ProfileDetail & AddManagedPolicyArns(ManagedPolicyArnsT &&value)
ProfileDetail & WithSessionPolicy(SessionPolicyT &&value)
const Aws::Vector< Aws::String > & GetManagedPolicyArns() const
const Aws::String & GetCreatedBy() const
ProfileDetail & WithProfileArn(ProfileArnT &&value)
void SetProfileId(ProfileIdT &&value)
AWS_ROLESANYWHERE_API ProfileDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileDetail & WithAttributeMappings(AttributeMappingsT &&value)
ProfileDetail & WithDurationSeconds(int value)
void SetSessionPolicy(SessionPolicyT &&value)
ProfileDetail & WithName(NameT &&value)
const Aws::String & GetSessionPolicy() const
void SetManagedPolicyArns(ManagedPolicyArnsT &&value)
ProfileDetail & AddAttributeMappings(AttributeMappingsT &&value)
AWS_ROLESANYWHERE_API ProfileDetail()=default
ProfileDetail & WithRequireInstanceProperties(bool value)
const Aws::Vector< AttributeMapping > & GetAttributeMappings() const
ProfileDetail & WithManagedPolicyArns(ManagedPolicyArnsT &&value)
void SetProfileArn(ProfileArnT &&value)
void SetAttributeMappings(AttributeMappingsT &&value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileDetail & WithAcceptRoleSessionName(bool value)
ProfileDetail & AddRoleArns(RoleArnsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ProfileDetail & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetName() const
ProfileDetail & WithUpdatedAt(UpdatedAtT &&value)
ProfileDetail & WithRoleArns(RoleArnsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() 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