AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProfileDetail.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rolesanywhere/model/AttributeMapping.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace RolesAnywhere
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ROLESANYWHERE_API ProfileDetail();
39 AWS_ROLESANYWHERE_API ProfileDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROLESANYWHERE_API ProfileDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline bool GetAcceptRoleSessionName() const{ return m_acceptRoleSessionName; }
50 inline bool AcceptRoleSessionNameHasBeenSet() const { return m_acceptRoleSessionNameHasBeenSet; }
51 inline void SetAcceptRoleSessionName(bool value) { m_acceptRoleSessionNameHasBeenSet = true; m_acceptRoleSessionName = value; }
52 inline ProfileDetail& WithAcceptRoleSessionName(bool value) { SetAcceptRoleSessionName(value); return *this;}
54
56
59 inline const Aws::Vector<AttributeMapping>& GetAttributeMappings() const{ return m_attributeMappings; }
60 inline bool AttributeMappingsHasBeenSet() const { return m_attributeMappingsHasBeenSet; }
61 inline void SetAttributeMappings(const Aws::Vector<AttributeMapping>& value) { m_attributeMappingsHasBeenSet = true; m_attributeMappings = value; }
62 inline void SetAttributeMappings(Aws::Vector<AttributeMapping>&& value) { m_attributeMappingsHasBeenSet = true; m_attributeMappings = std::move(value); }
65 inline ProfileDetail& AddAttributeMappings(const AttributeMapping& value) { m_attributeMappingsHasBeenSet = true; m_attributeMappings.push_back(value); return *this; }
66 inline ProfileDetail& AddAttributeMappings(AttributeMapping&& value) { m_attributeMappingsHasBeenSet = true; m_attributeMappings.push_back(std::move(value)); return *this; }
68
70
73 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
74 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
75 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
76 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
77 inline ProfileDetail& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
78 inline ProfileDetail& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
86 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
87 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
88 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
89 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
90 inline ProfileDetail& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
91 inline ProfileDetail& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
92 inline ProfileDetail& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
94
96
103 inline int GetDurationSeconds() const{ return m_durationSeconds; }
104 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
105 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
106 inline ProfileDetail& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
108
110
113 inline bool GetEnabled() const{ return m_enabled; }
114 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
115 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
116 inline ProfileDetail& WithEnabled(bool value) { SetEnabled(value); return *this;}
118
120
124 inline const Aws::Vector<Aws::String>& GetManagedPolicyArns() const{ return m_managedPolicyArns; }
125 inline bool ManagedPolicyArnsHasBeenSet() const { return m_managedPolicyArnsHasBeenSet; }
126 inline void SetManagedPolicyArns(const Aws::Vector<Aws::String>& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = value; }
127 inline void SetManagedPolicyArns(Aws::Vector<Aws::String>&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = std::move(value); }
129 inline ProfileDetail& WithManagedPolicyArns(Aws::Vector<Aws::String>&& value) { SetManagedPolicyArns(std::move(value)); return *this;}
130 inline ProfileDetail& AddManagedPolicyArns(const Aws::String& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(value); return *this; }
131 inline ProfileDetail& AddManagedPolicyArns(Aws::String&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(std::move(value)); return *this; }
132 inline ProfileDetail& AddManagedPolicyArns(const char* value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(value); return *this; }
134
136
139 inline const Aws::String& GetName() const{ return m_name; }
140 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
142 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
143 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
144 inline ProfileDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
145 inline ProfileDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
146 inline ProfileDetail& WithName(const char* value) { SetName(value); return *this;}
148
150
153 inline const Aws::String& GetProfileArn() const{ return m_profileArn; }
154 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
155 inline void SetProfileArn(const Aws::String& value) { m_profileArnHasBeenSet = true; m_profileArn = value; }
156 inline void SetProfileArn(Aws::String&& value) { m_profileArnHasBeenSet = true; m_profileArn = std::move(value); }
157 inline void SetProfileArn(const char* value) { m_profileArnHasBeenSet = true; m_profileArn.assign(value); }
158 inline ProfileDetail& WithProfileArn(const Aws::String& value) { SetProfileArn(value); return *this;}
159 inline ProfileDetail& WithProfileArn(Aws::String&& value) { SetProfileArn(std::move(value)); return *this;}
160 inline ProfileDetail& WithProfileArn(const char* value) { SetProfileArn(value); return *this;}
162
164
167 inline const Aws::String& GetProfileId() const{ return m_profileId; }
168 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
169 inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; }
170 inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); }
171 inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); }
172 inline ProfileDetail& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;}
173 inline ProfileDetail& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;}
174 inline ProfileDetail& WithProfileId(const char* value) { SetProfileId(value); return *this;}
176
178
182 inline bool GetRequireInstanceProperties() const{ return m_requireInstanceProperties; }
183 inline bool RequireInstancePropertiesHasBeenSet() const { return m_requireInstancePropertiesHasBeenSet; }
184 inline void SetRequireInstanceProperties(bool value) { m_requireInstancePropertiesHasBeenSet = true; m_requireInstanceProperties = value; }
187
189
193 inline const Aws::Vector<Aws::String>& GetRoleArns() const{ return m_roleArns; }
194 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
195 inline void SetRoleArns(const Aws::Vector<Aws::String>& value) { m_roleArnsHasBeenSet = true; m_roleArns = value; }
196 inline void SetRoleArns(Aws::Vector<Aws::String>&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::move(value); }
197 inline ProfileDetail& WithRoleArns(const Aws::Vector<Aws::String>& value) { SetRoleArns(value); return *this;}
198 inline ProfileDetail& WithRoleArns(Aws::Vector<Aws::String>&& value) { SetRoleArns(std::move(value)); return *this;}
199 inline ProfileDetail& AddRoleArns(const Aws::String& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
200 inline ProfileDetail& AddRoleArns(Aws::String&& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(std::move(value)); return *this; }
201 inline ProfileDetail& AddRoleArns(const char* value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
203
205
209 inline const Aws::String& GetSessionPolicy() const{ return m_sessionPolicy; }
210 inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; }
211 inline void SetSessionPolicy(const Aws::String& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = value; }
212 inline void SetSessionPolicy(Aws::String&& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = std::move(value); }
213 inline void SetSessionPolicy(const char* value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy.assign(value); }
214 inline ProfileDetail& WithSessionPolicy(const Aws::String& value) { SetSessionPolicy(value); return *this;}
215 inline ProfileDetail& WithSessionPolicy(Aws::String&& value) { SetSessionPolicy(std::move(value)); return *this;}
216 inline ProfileDetail& WithSessionPolicy(const char* value) { SetSessionPolicy(value); return *this;}
218
220
223 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
224 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
225 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
226 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
227 inline ProfileDetail& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
228 inline ProfileDetail& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
230 private:
231
232 bool m_acceptRoleSessionName;
233 bool m_acceptRoleSessionNameHasBeenSet = false;
234
235 Aws::Vector<AttributeMapping> m_attributeMappings;
236 bool m_attributeMappingsHasBeenSet = false;
237
238 Aws::Utils::DateTime m_createdAt;
239 bool m_createdAtHasBeenSet = false;
240
241 Aws::String m_createdBy;
242 bool m_createdByHasBeenSet = false;
243
244 int m_durationSeconds;
245 bool m_durationSecondsHasBeenSet = false;
246
247 bool m_enabled;
248 bool m_enabledHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_managedPolicyArns;
251 bool m_managedPolicyArnsHasBeenSet = false;
252
253 Aws::String m_name;
254 bool m_nameHasBeenSet = false;
255
256 Aws::String m_profileArn;
257 bool m_profileArnHasBeenSet = false;
258
259 Aws::String m_profileId;
260 bool m_profileIdHasBeenSet = false;
261
262 bool m_requireInstanceProperties;
263 bool m_requireInstancePropertiesHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_roleArns;
266 bool m_roleArnsHasBeenSet = false;
267
268 Aws::String m_sessionPolicy;
269 bool m_sessionPolicyHasBeenSet = false;
270
271 Aws::Utils::DateTime m_updatedAt;
272 bool m_updatedAtHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace RolesAnywhere
277} // namespace Aws
ProfileDetail & AddAttributeMappings(const AttributeMapping &value)
ProfileDetail & WithEnabled(bool value)
void SetCreatedBy(const Aws::String &value)
ProfileDetail & AddRoleArns(Aws::String &&value)
ProfileDetail & WithCreatedBy(Aws::String &&value)
const Aws::Vector< Aws::String > & GetRoleArns() const
ProfileDetail & WithProfileId(const Aws::String &value)
void SetSessionPolicy(const Aws::String &value)
AWS_ROLESANYWHERE_API ProfileDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetProfileId() const
const Aws::String & GetProfileArn() const
void SetAttributeMappings(const Aws::Vector< AttributeMapping > &value)
ProfileDetail & WithSessionPolicy(const Aws::String &value)
ProfileDetail & WithSessionPolicy(const char *value)
void SetRoleArns(const Aws::Vector< Aws::String > &value)
void SetManagedPolicyArns(Aws::Vector< Aws::String > &&value)
void SetRoleArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetManagedPolicyArns() const
ProfileDetail & WithRoleArns(Aws::Vector< Aws::String > &&value)
const Aws::String & GetCreatedBy() const
ProfileDetail & WithProfileId(const char *value)
void SetManagedPolicyArns(const Aws::Vector< Aws::String > &value)
ProfileDetail & WithManagedPolicyArns(Aws::Vector< Aws::String > &&value)
ProfileDetail & AddAttributeMappings(AttributeMapping &&value)
AWS_ROLESANYWHERE_API ProfileDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileDetail & WithCreatedAt(const Aws::Utils::DateTime &value)
ProfileDetail & AddManagedPolicyArns(Aws::String &&value)
ProfileDetail & WithProfileArn(const Aws::String &value)
ProfileDetail & WithManagedPolicyArns(const Aws::Vector< Aws::String > &value)
ProfileDetail & WithUpdatedAt(Aws::Utils::DateTime &&value)
ProfileDetail & WithName(const Aws::String &value)
ProfileDetail & AddRoleArns(const Aws::String &value)
ProfileDetail & WithAttributeMappings(const Aws::Vector< AttributeMapping > &value)
ProfileDetail & WithDurationSeconds(int value)
ProfileDetail & AddRoleArns(const char *value)
void SetName(const Aws::String &value)
ProfileDetail & WithCreatedBy(const Aws::String &value)
void SetAttributeMappings(Aws::Vector< AttributeMapping > &&value)
const Aws::String & GetSessionPolicy() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
ProfileDetail & WithCreatedAt(Aws::Utils::DateTime &&value)
ProfileDetail & WithSessionPolicy(Aws::String &&value)
ProfileDetail & AddManagedPolicyArns(const char *value)
ProfileDetail & WithRequireInstanceProperties(bool value)
const Aws::Vector< AttributeMapping > & GetAttributeMappings() const
void SetProfileArn(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetProfileId(Aws::String &&value)
void SetSessionPolicy(Aws::String &&value)
ProfileDetail & WithProfileArn(const char *value)
void SetCreatedBy(Aws::String &&value)
AWS_ROLESANYWHERE_API ProfileDetail()
ProfileDetail & AddManagedPolicyArns(const Aws::String &value)
ProfileDetail & WithCreatedBy(const char *value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileDetail & WithName(const char *value)
ProfileDetail & WithAttributeMappings(Aws::Vector< AttributeMapping > &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
ProfileDetail & WithProfileId(Aws::String &&value)
ProfileDetail & WithAcceptRoleSessionName(bool value)
ProfileDetail & WithName(Aws::String &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ProfileDetail & WithRoleArns(const Aws::Vector< Aws::String > &value)
void SetProfileArn(const Aws::String &value)
ProfileDetail & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ProfileDetail & WithProfileArn(Aws::String &&value)
const Aws::String & GetName() const
void SetProfileId(const Aws::String &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