7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sts/STSRequest.h>
10#include <aws/sts/STS_EXPORTS.h>
11#include <aws/sts/model/PolicyDescriptorType.h>
12#include <aws/sts/model/ProvidedContext.h>
13#include <aws/sts/model/Tag.h>
45 template <
typename RoleArnT = Aws::String>
47 m_roleArnHasBeenSet =
true;
48 m_roleArn = std::forward<RoleArnT>(value);
50 template <
typename RoleArnT = Aws::String>
80 template <
typename RoleSessionNameT = Aws::String>
82 m_roleSessionNameHasBeenSet =
true;
83 m_roleSessionName = std::forward<RoleSessionNameT>(value);
85 template <
typename RoleSessionNameT = Aws::String>
120 template <
typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
122 m_policyArnsHasBeenSet =
true;
123 m_policyArns = std::forward<PolicyArnsT>(value);
125 template <
typename PolicyArnsT = Aws::Vector<PolicyDescriptorType>>
130 template <
typename PolicyArnsT = PolicyDescriptorType>
132 m_policyArnsHasBeenSet =
true;
133 m_policyArns.emplace_back(std::forward<PolicyArnsT>(value));
167 template <
typename PolicyT = Aws::String>
169 m_policyHasBeenSet =
true;
170 m_policy = std::forward<PolicyT>(value);
172 template <
typename PolicyT = Aws::String>
211 m_durationSecondsHasBeenSet =
true;
212 m_durationSeconds = value;
256 template <
typename TagsT = Aws::Vector<Tag>>
258 m_tagsHasBeenSet =
true;
259 m_tags = std::forward<TagsT>(value);
261 template <
typename TagsT = Aws::Vector<Tag>>
263 SetTags(std::forward<TagsT>(value));
266 template <
typename TagsT = Tag>
268 m_tagsHasBeenSet =
true;
269 m_tags.emplace_back(std::forward<TagsT>(value));
287 template <
typename TransitiveTagKeysT = Aws::Vector<Aws::String>>
289 m_transitiveTagKeysHasBeenSet =
true;
290 m_transitiveTagKeys = std::forward<TransitiveTagKeysT>(value);
292 template <
typename TransitiveTagKeysT = Aws::Vector<Aws::String>>
297 template <
typename TransitiveTagKeysT = Aws::String>
299 m_transitiveTagKeysHasBeenSet =
true;
300 m_transitiveTagKeys.emplace_back(std::forward<TransitiveTagKeysT>(value));
325 template <
typename ExternalIdT = Aws::String>
327 m_externalIdHasBeenSet =
true;
328 m_externalId = std::forward<ExternalIdT>(value);
330 template <
typename ExternalIdT = Aws::String>
351 template <
typename SerialNumberT = Aws::String>
353 m_serialNumberHasBeenSet =
true;
354 m_serialNumber = std::forward<SerialNumberT>(value);
356 template <
typename SerialNumberT = Aws::String>
374 template <
typename TokenCodeT = Aws::String>
376 m_tokenCodeHasBeenSet =
true;
377 m_tokenCode = std::forward<TokenCodeT>(value);
379 template <
typename TokenCodeT = Aws::String>
410 template <
typename SourceIdentityT = Aws::String>
412 m_sourceIdentityHasBeenSet =
true;
413 m_sourceIdentity = std::forward<SourceIdentityT>(value);
415 template <
typename SourceIdentityT = Aws::String>
435 template <
typename Prov
idedContextsT = Aws::Vector<Prov
idedContext>>
437 m_providedContextsHasBeenSet =
true;
438 m_providedContexts = std::forward<ProvidedContextsT>(value);
440 template <
typename Prov
idedContextsT = Aws::Vector<Prov
idedContext>>
445 template <
typename Prov
idedContextsT = Prov
idedContext>
447 m_providedContextsHasBeenSet =
true;
448 m_providedContexts.emplace_back(std::forward<ProvidedContextsT>(value));
461 int m_durationSeconds{0};
476 bool m_roleArnHasBeenSet =
false;
477 bool m_roleSessionNameHasBeenSet =
false;
478 bool m_policyArnsHasBeenSet =
false;
479 bool m_policyHasBeenSet =
false;
480 bool m_durationSecondsHasBeenSet =
false;
481 bool m_tagsHasBeenSet =
false;
482 bool m_transitiveTagKeysHasBeenSet =
false;
483 bool m_externalIdHasBeenSet =
false;
484 bool m_serialNumberHasBeenSet =
false;
485 bool m_tokenCodeHasBeenSet =
false;
486 bool m_sourceIdentityHasBeenSet =
false;
487 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