7#include <aws/sts/STS_EXPORTS.h>
8#include <aws/sts/STSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sts/model/PolicyDescriptorType.h>
12#include <aws/sts/model/Tag.h>
13#include <aws/sts/model/ProvidedContext.h>
49 template<
typename RoleArnT = Aws::String>
50 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
51 template<
typename RoleArnT = Aws::String>
78 template<
typename RoleSessionNameT = Aws::String>
79 void SetRoleSessionName(RoleSessionNameT&& value) { m_roleSessionNameHasBeenSet =
true; m_roleSessionName = std::forward<RoleSessionNameT>(value); }
80 template<
typename RoleSessionNameT = Aws::String>
112 template<
typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
113 void SetPolicyArns(PolicyArnsT&& value) { m_policyArnsHasBeenSet =
true; m_policyArns = std::forward<PolicyArnsT>(value); }
114 template<
typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
116 template<
typename PolicyArnsT = PolicyDescriptorType>
117 AssumeRoleRequest&
AddPolicyArns(PolicyArnsT&& value) { m_policyArnsHasBeenSet =
true; m_policyArns.emplace_back(std::forward<PolicyArnsT>(value));
return *
this; }
149 template<
typename PolicyT = Aws::String>
150 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet =
true; m_policy = std::forward<PolicyT>(value); }
151 template<
typename PolicyT = Aws::String>
186 inline void SetDurationSeconds(
int value) { m_durationSecondsHasBeenSet =
true; m_durationSeconds = value; }
226 template<
typename TagsT = Aws::Vector<Tag>>
227 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
228 template<
typename TagsT = Aws::Vector<Tag>>
230 template<
typename TagsT = Tag>
231 AssumeRoleRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
247 template<
typename TransitiveTagKeysT = Aws::Vector<Aws::String>>
248 void SetTransitiveTagKeys(TransitiveTagKeysT&& value) { m_transitiveTagKeysHasBeenSet =
true; m_transitiveTagKeys = std::forward<TransitiveTagKeysT>(value); }
249 template<
typename TransitiveTagKeysT = Aws::Vector<Aws::String>>
251 template<
typename TransitiveTagKeysT = Aws::String>
252 AssumeRoleRequest&
AddTransitiveTagKeys(TransitiveTagKeysT&& value) { m_transitiveTagKeysHasBeenSet =
true; m_transitiveTagKeys.emplace_back(std::forward<TransitiveTagKeysT>(value));
return *
this; }
275 template<
typename ExternalIdT = Aws::String>
276 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet =
true; m_externalId = std::forward<ExternalIdT>(value); }
277 template<
typename ExternalIdT = Aws::String>
295 template<
typename SerialNumberT = Aws::String>
296 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet =
true; m_serialNumber = std::forward<SerialNumberT>(value); }
297 template<
typename SerialNumberT = Aws::String>
312 template<
typename TokenCodeT = Aws::String>
313 void SetTokenCode(TokenCodeT&& value) { m_tokenCodeHasBeenSet =
true; m_tokenCode = std::forward<TokenCodeT>(value); }
314 template<
typename TokenCodeT = Aws::String>
342 template<
typename SourceIdentityT = Aws::String>
343 void SetSourceIdentity(SourceIdentityT&& value) { m_sourceIdentityHasBeenSet =
true; m_sourceIdentity = std::forward<SourceIdentityT>(value); }
344 template<
typename SourceIdentityT = Aws::String>
361 template<
typename Prov
idedContextsT = Aws::Vector<Prov
idedContext>>
362 void SetProvidedContexts(ProvidedContextsT&& value) { m_providedContextsHasBeenSet =
true; m_providedContexts = std::forward<ProvidedContextsT>(value); }
363 template<
typename Prov
idedContextsT = Aws::Vector<Prov
idedContext>>
365 template<
typename Prov
idedContextsT = Prov
idedContext>
366 AssumeRoleRequest&
AddProvidedContexts(ProvidedContextsT&& value) { m_providedContextsHasBeenSet =
true; m_providedContexts.emplace_back(std::forward<ProvidedContextsT>(value));
return *
this; }
371 bool m_roleArnHasBeenSet =
false;
374 bool m_roleSessionNameHasBeenSet =
false;
377 bool m_policyArnsHasBeenSet =
false;
380 bool m_policyHasBeenSet =
false;
382 int m_durationSeconds{0};
383 bool m_durationSecondsHasBeenSet =
false;
386 bool m_tagsHasBeenSet =
false;
389 bool m_transitiveTagKeysHasBeenSet =
false;
392 bool m_externalIdHasBeenSet =
false;
395 bool m_serialNumberHasBeenSet =
false;
398 bool m_tokenCodeHasBeenSet =
false;
401 bool m_sourceIdentityHasBeenSet =
false;
404 bool m_providedContextsHasBeenSet =
false;
virtual const char * GetServiceRequestName() const override
void SetSerialNumber(SerialNumberT &&value)
const Aws::String & GetRoleArn() const
void SetPolicy(PolicyT &&value)
AssumeRoleRequest & WithTags(TagsT &&value)
void SetTransitiveTagKeys(TransitiveTagKeysT &&value)
const Aws::String & GetSerialNumber() const
bool RoleSessionNameHasBeenSet() const
bool RoleArnHasBeenSet() const
AssumeRoleRequest & AddProvidedContexts(ProvidedContextsT &&value)
bool TransitiveTagKeysHasBeenSet() const
void SetRoleArn(RoleArnT &&value)
AssumeRoleRequest & WithTokenCode(TokenCodeT &&value)
AssumeRoleRequest & AddTags(TagsT &&value)
AssumeRoleRequest & AddPolicyArns(PolicyArnsT &&value)
void SetTokenCode(TokenCodeT &&value)
AssumeRoleRequest & WithPolicy(PolicyT &&value)
bool ExternalIdHasBeenSet() const
void SetDurationSeconds(int value)
AssumeRoleRequest & WithRoleArn(RoleArnT &&value)
bool SourceIdentityHasBeenSet() const
AssumeRoleRequest & WithRoleSessionName(RoleSessionNameT &&value)
bool TokenCodeHasBeenSet() const
AWS_STS_API AssumeRoleRequest()=default
AssumeRoleRequest & WithDurationSeconds(int value)
const Aws::String & GetPolicy() const
bool TagsHasBeenSet() const
void SetTags(TagsT &&value)
AWS_STS_API Aws::String SerializePayload() const override
const Aws::String & GetSourceIdentity() const
AssumeRoleRequest & WithPolicyArns(PolicyArnsT &&value)
const Aws::Vector< Aws::String > & GetTransitiveTagKeys() const
AssumeRoleRequest & WithSourceIdentity(SourceIdentityT &&value)
void SetPolicyArns(PolicyArnsT &&value)
AWS_STS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetRoleSessionName(RoleSessionNameT &&value)
AssumeRoleRequest & WithSerialNumber(SerialNumberT &&value)
void SetExternalId(ExternalIdT &&value)
const Aws::String & GetTokenCode() const
AssumeRoleRequest & WithTransitiveTagKeys(TransitiveTagKeysT &&value)
bool DurationSecondsHasBeenSet() const
AssumeRoleRequest & WithExternalId(ExternalIdT &&value)
bool PolicyHasBeenSet() const
AssumeRoleRequest & WithProvidedContexts(ProvidedContextsT &&value)
const Aws::String & GetExternalId() const
const Aws::Vector< Tag > & GetTags() const
int GetDurationSeconds() const
bool ProvidedContextsHasBeenSet() const
void SetSourceIdentity(SourceIdentityT &&value)
AssumeRoleRequest & AddTransitiveTagKeys(TransitiveTagKeysT &&value)
const Aws::Vector< ProvidedContext > & GetProvidedContexts() const
bool PolicyArnsHasBeenSet() const
bool SerialNumberHasBeenSet() const
const Aws::String & GetRoleSessionName() const
const Aws::Vector< PolicyDescriptorType > & GetPolicyArns() const
void SetProvidedContexts(ProvidedContextsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector