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>
24namespace RolesAnywhere
51 inline void SetAcceptRoleSessionName(
bool value) { m_acceptRoleSessionNameHasBeenSet =
true; m_acceptRoleSessionName = value; }
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>>
65 template<
typename AttributeMappingsT = AttributeMapping>
66 ProfileDetail&
AddAttributeMappings(AttributeMappingsT&& value) { m_attributeMappingsHasBeenSet =
true; m_attributeMappings.emplace_back(std::forward<AttributeMappingsT>(value));
return *
this; }
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>
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>
103 inline void SetDurationSeconds(
int value) { m_durationSecondsHasBeenSet =
true; m_durationSeconds = value; }
113 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
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>>
128 template<
typename ManagedPolicyArnsT = Aws::String>
129 ProfileDetail&
AddManagedPolicyArns(ManagedPolicyArnsT&& value) { m_managedPolicyArnsHasBeenSet =
true; m_managedPolicyArns.emplace_back(std::forward<ManagedPolicyArnsT>(value));
return *
this; }
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>
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>
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>
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>>
190 template<
typename RoleArnsT = Aws::String>
191 ProfileDetail&
AddRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet =
true; m_roleArns.emplace_back(std::forward<RoleArnsT>(value));
return *
this; }
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>
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>
220 bool m_acceptRoleSessionName{
false};
221 bool m_acceptRoleSessionNameHasBeenSet =
false;
224 bool m_attributeMappingsHasBeenSet =
false;
227 bool m_createdAtHasBeenSet =
false;
230 bool m_createdByHasBeenSet =
false;
232 int m_durationSeconds{0};
233 bool m_durationSecondsHasBeenSet =
false;
235 bool m_enabled{
false};
236 bool m_enabledHasBeenSet =
false;
239 bool m_managedPolicyArnsHasBeenSet =
false;
242 bool m_nameHasBeenSet =
false;
245 bool m_profileArnHasBeenSet =
false;
248 bool m_profileIdHasBeenSet =
false;
250 bool m_requireInstanceProperties{
false};
251 bool m_requireInstancePropertiesHasBeenSet =
false;
254 bool m_roleArnsHasBeenSet =
false;
257 bool m_sessionPolicyHasBeenSet =
false;
260 bool m_updatedAtHasBeenSet =
false;
ProfileDetail & WithEnabled(bool value)
const Aws::Vector< Aws::String > & GetRoleArns() const
bool CreatedByHasBeenSet() const
bool UpdatedAtHasBeenSet() const
AWS_ROLESANYWHERE_API ProfileDetail(Aws::Utils::Json::JsonView jsonValue)
ProfileDetail & WithProfileId(ProfileIdT &&value)
bool GetRequireInstanceProperties() const
ProfileDetail & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetProfileId() const
const Aws::String & GetProfileArn() const
ProfileDetail & AddManagedPolicyArns(ManagedPolicyArnsT &&value)
ProfileDetail & WithSessionPolicy(SessionPolicyT &&value)
bool AcceptRoleSessionNameHasBeenSet() const
const Aws::Vector< Aws::String > & GetManagedPolicyArns() const
const Aws::String & GetCreatedBy() const
void SetRoleArns(RoleArnsT &&value)
void SetDurationSeconds(int value)
bool DurationSecondsHasBeenSet() const
bool CreatedAtHasBeenSet() const
ProfileDetail & WithProfileArn(ProfileArnT &&value)
void SetProfileId(ProfileIdT &&value)
AWS_ROLESANYWHERE_API ProfileDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
bool NameHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
ProfileDetail & WithAttributeMappings(AttributeMappingsT &&value)
ProfileDetail & WithDurationSeconds(int value)
bool ManagedPolicyArnsHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
void SetSessionPolicy(SessionPolicyT &&value)
ProfileDetail & WithName(NameT &&value)
const Aws::String & GetSessionPolicy() const
bool RoleArnsHasBeenSet() const
bool SessionPolicyHasBeenSet() const
void SetManagedPolicyArns(ManagedPolicyArnsT &&value)
ProfileDetail & AddAttributeMappings(AttributeMappingsT &&value)
void SetName(NameT &&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 SetAcceptRoleSessionName(bool value)
bool ProfileArnHasBeenSet() const
void SetEnabled(bool value)
bool ProfileIdHasBeenSet() const
bool EnabledHasBeenSet() const
void SetAttributeMappings(AttributeMappingsT &&value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
bool GetAcceptRoleSessionName() const
ProfileDetail & WithAcceptRoleSessionName(bool value)
void SetRequireInstanceProperties(bool value)
bool RequireInstancePropertiesHasBeenSet() const
bool AttributeMappingsHasBeenSet() const
ProfileDetail & AddRoleArns(RoleArnsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
int GetDurationSeconds() 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