7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/RolesAnywhereRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rolesanywhere/model/Tag.h>
16namespace RolesAnywhere
44 inline void SetAcceptRoleSessionName(
bool value) { m_acceptRoleSessionNameHasBeenSet =
true; m_acceptRoleSessionName = value; }
58 inline void SetDurationSeconds(
int value) { m_durationSecondsHasBeenSet =
true; m_durationSeconds = value; }
68 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
79 template<
typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
80 void SetManagedPolicyArns(ManagedPolicyArnsT&& value) { m_managedPolicyArnsHasBeenSet =
true; m_managedPolicyArns = std::forward<ManagedPolicyArnsT>(value); }
81 template<
typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
83 template<
typename ManagedPolicyArnsT = Aws::String>
93 template<
typename NameT = Aws::String>
94 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
95 template<
typename NameT = Aws::String>
117 template<
typename RoleArnsT = Aws::Vector<Aws::String>>
118 void SetRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet =
true; m_roleArns = std::forward<RoleArnsT>(value); }
119 template<
typename RoleArnsT = Aws::Vector<Aws::String>>
121 template<
typename RoleArnsT = Aws::String>
132 template<
typename SessionPolicyT = Aws::String>
133 void SetSessionPolicy(SessionPolicyT&& value) { m_sessionPolicyHasBeenSet =
true; m_sessionPolicy = std::forward<SessionPolicyT>(value); }
134 template<
typename SessionPolicyT = Aws::String>
144 template<
typename TagsT = Aws::Vector<Tag>>
145 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
146 template<
typename TagsT = Aws::Vector<Tag>>
148 template<
typename TagsT = Tag>
153 bool m_acceptRoleSessionName{
false};
154 bool m_acceptRoleSessionNameHasBeenSet =
false;
156 int m_durationSeconds{0};
157 bool m_durationSecondsHasBeenSet =
false;
159 bool m_enabled{
false};
160 bool m_enabledHasBeenSet =
false;
163 bool m_managedPolicyArnsHasBeenSet =
false;
166 bool m_nameHasBeenSet =
false;
168 bool m_requireInstanceProperties{
false};
169 bool m_requireInstancePropertiesHasBeenSet =
false;
172 bool m_roleArnsHasBeenSet =
false;
175 bool m_sessionPolicyHasBeenSet =
false;
178 bool m_tagsHasBeenSet =
false;
CreateProfileRequest & WithSessionPolicy(SessionPolicyT &&value)
bool DurationSecondsHasBeenSet() const
void SetDurationSeconds(int value)
CreateProfileRequest & WithName(NameT &&value)
bool AcceptRoleSessionNameHasBeenSet() const
void SetRoleArns(RoleArnsT &&value)
CreateProfileRequest & WithEnabled(bool value)
CreateProfileRequest & WithTags(TagsT &&value)
bool GetRequireInstanceProperties() const
virtual const char * GetServiceRequestName() const override
CreateProfileRequest & WithAcceptRoleSessionName(bool value)
AWS_ROLESANYWHERE_API CreateProfileRequest()=default
const Aws::String & GetSessionPolicy() const
void SetAcceptRoleSessionName(bool value)
CreateProfileRequest & WithManagedPolicyArns(ManagedPolicyArnsT &&value)
CreateProfileRequest & WithRequireInstanceProperties(bool value)
const Aws::Vector< Aws::String > & GetManagedPolicyArns() const
void SetManagedPolicyArns(ManagedPolicyArnsT &&value)
bool RequireInstancePropertiesHasBeenSet() const
bool RoleArnsHasBeenSet() const
int GetDurationSeconds() const
bool SessionPolicyHasBeenSet() const
bool GetAcceptRoleSessionName() const
void SetName(NameT &&value)
CreateProfileRequest & WithRoleArns(RoleArnsT &&value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetRoleArns() const
CreateProfileRequest & AddManagedPolicyArns(ManagedPolicyArnsT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetSessionPolicy(SessionPolicyT &&value)
bool TagsHasBeenSet() const
void SetRequireInstanceProperties(bool value)
bool ManagedPolicyArnsHasBeenSet() const
CreateProfileRequest & AddTags(TagsT &&value)
CreateProfileRequest & AddRoleArns(RoleArnsT &&value)
bool EnabledHasBeenSet() const
CreateProfileRequest & WithDurationSeconds(int value)
void SetEnabled(bool value)
bool NameHasBeenSet() const
const Aws::String & GetName() const
void SetTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector