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>
15namespace RolesAnywhere {
38 template <
typename ProfileIdT = Aws::String>
40 m_profileIdHasBeenSet =
true;
41 m_profileId = std::forward<ProfileIdT>(value);
43 template <
typename ProfileIdT = Aws::String>
56 template <
typename NameT = Aws::String>
58 m_nameHasBeenSet =
true;
59 m_name = std::forward<NameT>(value);
61 template <
typename NameT = Aws::String>
63 SetName(std::forward<NameT>(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;
165 m_acceptRoleSessionNameHasBeenSet =
true;
166 m_acceptRoleSessionName = value;
184 int m_durationSeconds{0};
186 bool m_acceptRoleSessionName{
false};
187 bool m_profileIdHasBeenSet =
false;
188 bool m_nameHasBeenSet =
false;
189 bool m_sessionPolicyHasBeenSet =
false;
190 bool m_roleArnsHasBeenSet =
false;
191 bool m_managedPolicyArnsHasBeenSet =
false;
192 bool m_durationSecondsHasBeenSet =
false;
193 bool m_acceptRoleSessionNameHasBeenSet =
false;
UpdateProfileRequest & WithName(NameT &&value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
bool GetAcceptRoleSessionName() const
void SetDurationSeconds(int value)
void SetProfileId(ProfileIdT &&value)
void SetRoleArns(RoleArnsT &&value)
const Aws::String & GetName() const
bool RoleArnsHasBeenSet() const
void SetAcceptRoleSessionName(bool value)
UpdateProfileRequest & WithManagedPolicyArns(ManagedPolicyArnsT &&value)
bool NameHasBeenSet() const
void SetName(NameT &&value)
AWS_ROLESANYWHERE_API UpdateProfileRequest()=default
UpdateProfileRequest & WithRoleArns(RoleArnsT &&value)
const Aws::Vector< Aws::String > & GetManagedPolicyArns() const
UpdateProfileRequest & AddManagedPolicyArns(ManagedPolicyArnsT &&value)
bool DurationSecondsHasBeenSet() const
const Aws::Vector< Aws::String > & GetRoleArns() const
const Aws::String & GetProfileId() const
int GetDurationSeconds() const
bool SessionPolicyHasBeenSet() const
UpdateProfileRequest & AddRoleArns(RoleArnsT &&value)
UpdateProfileRequest & WithProfileId(ProfileIdT &&value)
UpdateProfileRequest & WithSessionPolicy(SessionPolicyT &&value)
bool ManagedPolicyArnsHasBeenSet() const
UpdateProfileRequest & WithAcceptRoleSessionName(bool value)
bool AcceptRoleSessionNameHasBeenSet() const
UpdateProfileRequest & WithDurationSeconds(int value)
const Aws::String & GetSessionPolicy() const
void SetSessionPolicy(SessionPolicyT &&value)
bool ProfileIdHasBeenSet() const
void SetManagedPolicyArns(ManagedPolicyArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector