AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AttributeMappingsT = Aws::Vector<AttributeMapping>>
62 void SetAttributeMappings(AttributeMappingsT&& value) { m_attributeMappingsHasBeenSet = true; m_attributeMappings = std::forward<AttributeMappingsT>(value); }
63 template<typename AttributeMappingsT = Aws::Vector<AttributeMapping>>
64 ProfileDetail& WithAttributeMappings(AttributeMappingsT&& value) { SetAttributeMappings(std::forward<AttributeMappingsT>(value)); return *this;}
65 template<typename AttributeMappingsT = AttributeMapping>
66 ProfileDetail& AddAttributeMappings(AttributeMappingsT&& value) { m_attributeMappingsHasBeenSet = true; m_attributeMappings.emplace_back(std::forward<AttributeMappingsT>(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 template<typename CreatedAtT = Aws::Utils::DateTime>
76 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
77 template<typename CreatedAtT = Aws::Utils::DateTime>
78 ProfileDetail& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
80
82
85 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
86 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
87 template<typename CreatedByT = Aws::String>
88 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
89 template<typename CreatedByT = Aws::String>
90 ProfileDetail& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
92
94
101 inline int GetDurationSeconds() const { return m_durationSeconds; }
102 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
103 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
104 inline ProfileDetail& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
106
108
111 inline bool GetEnabled() const { return m_enabled; }
112 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
113 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
114 inline ProfileDetail& WithEnabled(bool value) { SetEnabled(value); return *this;}
116
118
122 inline const Aws::Vector<Aws::String>& GetManagedPolicyArns() const { return m_managedPolicyArns; }
123 inline bool ManagedPolicyArnsHasBeenSet() const { return m_managedPolicyArnsHasBeenSet; }
124 template<typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
125 void SetManagedPolicyArns(ManagedPolicyArnsT&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = std::forward<ManagedPolicyArnsT>(value); }
126 template<typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
127 ProfileDetail& WithManagedPolicyArns(ManagedPolicyArnsT&& value) { SetManagedPolicyArns(std::forward<ManagedPolicyArnsT>(value)); return *this;}
128 template<typename ManagedPolicyArnsT = Aws::String>
129 ProfileDetail& AddManagedPolicyArns(ManagedPolicyArnsT&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.emplace_back(std::forward<ManagedPolicyArnsT>(value)); return *this; }
131
133
136 inline const Aws::String& GetName() const { return m_name; }
137 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
138 template<typename NameT = Aws::String>
139 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
140 template<typename NameT = Aws::String>
141 ProfileDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
143
145
148 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
149 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
150 template<typename ProfileArnT = Aws::String>
151 void SetProfileArn(ProfileArnT&& value) { m_profileArnHasBeenSet = true; m_profileArn = std::forward<ProfileArnT>(value); }
152 template<typename ProfileArnT = Aws::String>
153 ProfileDetail& WithProfileArn(ProfileArnT&& value) { SetProfileArn(std::forward<ProfileArnT>(value)); return *this;}
155
157
160 inline const Aws::String& GetProfileId() const { return m_profileId; }
161 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
162 template<typename ProfileIdT = Aws::String>
163 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
164 template<typename ProfileIdT = Aws::String>
165 ProfileDetail& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
167
169
173 inline bool GetRequireInstanceProperties() const { return m_requireInstanceProperties; }
174 inline bool RequireInstancePropertiesHasBeenSet() const { return m_requireInstancePropertiesHasBeenSet; }
175 inline void SetRequireInstanceProperties(bool value) { m_requireInstancePropertiesHasBeenSet = true; m_requireInstanceProperties = value; }
178
180
184 inline const Aws::Vector<Aws::String>& GetRoleArns() const { return m_roleArns; }
185 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
186 template<typename RoleArnsT = Aws::Vector<Aws::String>>
187 void SetRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::forward<RoleArnsT>(value); }
188 template<typename RoleArnsT = Aws::Vector<Aws::String>>
189 ProfileDetail& WithRoleArns(RoleArnsT&& value) { SetRoleArns(std::forward<RoleArnsT>(value)); return *this;}
190 template<typename RoleArnsT = Aws::String>
191 ProfileDetail& AddRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet = true; m_roleArns.emplace_back(std::forward<RoleArnsT>(value)); return *this; }
193
195
199 inline const Aws::String& GetSessionPolicy() const { return m_sessionPolicy; }
200 inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; }
201 template<typename SessionPolicyT = Aws::String>
202 void SetSessionPolicy(SessionPolicyT&& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = std::forward<SessionPolicyT>(value); }
203 template<typename SessionPolicyT = Aws::String>
204 ProfileDetail& WithSessionPolicy(SessionPolicyT&& value) { SetSessionPolicy(std::forward<SessionPolicyT>(value)); return *this;}
206
208
211 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
212 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
213 template<typename UpdatedAtT = Aws::Utils::DateTime>
214 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
215 template<typename UpdatedAtT = Aws::Utils::DateTime>
216 ProfileDetail& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
218 private:
219
220 bool m_acceptRoleSessionName{false};
221 bool m_acceptRoleSessionNameHasBeenSet = false;
222
223 Aws::Vector<AttributeMapping> m_attributeMappings;
224 bool m_attributeMappingsHasBeenSet = false;
225
226 Aws::Utils::DateTime m_createdAt{};
227 bool m_createdAtHasBeenSet = false;
228
229 Aws::String m_createdBy;
230 bool m_createdByHasBeenSet = false;
231
232 int m_durationSeconds{0};
233 bool m_durationSecondsHasBeenSet = false;
234
235 bool m_enabled{false};
236 bool m_enabledHasBeenSet = false;
237
238 Aws::Vector<Aws::String> m_managedPolicyArns;
239 bool m_managedPolicyArnsHasBeenSet = false;
240
241 Aws::String m_name;
242 bool m_nameHasBeenSet = false;
243
244 Aws::String m_profileArn;
245 bool m_profileArnHasBeenSet = false;
246
247 Aws::String m_profileId;
248 bool m_profileIdHasBeenSet = false;
249
250 bool m_requireInstanceProperties{false};
251 bool m_requireInstancePropertiesHasBeenSet = false;
252
253 Aws::Vector<Aws::String> m_roleArns;
254 bool m_roleArnsHasBeenSet = false;
255
256 Aws::String m_sessionPolicy;
257 bool m_sessionPolicyHasBeenSet = false;
258
259 Aws::Utils::DateTime m_updatedAt{};
260 bool m_updatedAtHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace RolesAnywhere
265} // 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)
AWS_ROLESANYWHERE_API ProfileDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileDetail & WithAttributeMappings(AttributeMappingsT &&value)
ProfileDetail & WithDurationSeconds(int value)
void SetCreatedAt(CreatedAtT &&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)
void SetCreatedBy(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