7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rolesanywhere/RolesAnywhereRequest.h>
10#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
11#include <aws/rolesanywhere/model/Tag.h>
16namespace RolesAnywhere {
39 template <
typename NameT = Aws::String>
41 m_nameHasBeenSet =
true;
42 m_name = std::forward<NameT>(value);
44 template <
typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
59 m_requireInstancePropertiesHasBeenSet =
true;
60 m_requireInstanceProperties = value;
75 template <
typename SessionPolicyT = Aws::String>
77 m_sessionPolicyHasBeenSet =
true;
78 m_sessionPolicy = std::forward<SessionPolicyT>(value);
80 template <
typename SessionPolicyT = Aws::String>
94 template <
typename RoleArnsT = Aws::Vector<Aws::String>>
96 m_roleArnsHasBeenSet =
true;
97 m_roleArns = std::forward<RoleArnsT>(value);
99 template <
typename RoleArnsT = Aws::Vector<Aws::String>>
104 template <
typename RoleArnsT = Aws::String>
106 m_roleArnsHasBeenSet =
true;
107 m_roleArns.emplace_back(std::forward<RoleArnsT>(value));
119 template <
typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
121 m_managedPolicyArnsHasBeenSet =
true;
122 m_managedPolicyArns = std::forward<ManagedPolicyArnsT>(value);
124 template <
typename ManagedPolicyArnsT = Aws::Vector<Aws::String>>
129 template <
typename ManagedPolicyArnsT = Aws::String>
131 m_managedPolicyArnsHasBeenSet =
true;
132 m_managedPolicyArns.emplace_back(std::forward<ManagedPolicyArnsT>(value));
148 m_durationSecondsHasBeenSet =
true;
149 m_durationSeconds = value;
164 m_enabledHasBeenSet =
true;
179 template <
typename TagsT = Aws::Vector<Tag>>
181 m_tagsHasBeenSet =
true;
182 m_tags = std::forward<TagsT>(value);
184 template <
typename TagsT = Aws::Vector<Tag>>
186 SetTags(std::forward<TagsT>(value));
189 template <
typename TagsT = Tag>
191 m_tagsHasBeenSet =
true;
192 m_tags.emplace_back(std::forward<TagsT>(value));
205 m_acceptRoleSessionNameHasBeenSet =
true;
206 m_acceptRoleSessionName = value;
216 bool m_requireInstanceProperties{
false};
224 int m_durationSeconds{0};
226 bool m_enabled{
false};
230 bool m_acceptRoleSessionName{
false};
231 bool m_nameHasBeenSet =
false;
232 bool m_requireInstancePropertiesHasBeenSet =
false;
233 bool m_sessionPolicyHasBeenSet =
false;
234 bool m_roleArnsHasBeenSet =
false;
235 bool m_managedPolicyArnsHasBeenSet =
false;
236 bool m_durationSecondsHasBeenSet =
false;
237 bool m_enabledHasBeenSet =
false;
238 bool m_tagsHasBeenSet =
false;
239 bool m_acceptRoleSessionNameHasBeenSet =
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