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>
51 inline void SetRoleArn(
const char* value) { m_roleArnHasBeenSet =
true; m_roleArn.assign(value); }
75 inline void SetRoleSessionName(
const char* value) { m_roleSessionNameHasBeenSet =
true; m_roleSessionName.assign(value); }
145 inline void SetPolicy(
const char* value) { m_policyHasBeenSet =
true; m_policy.assign(value); }
182 inline void SetDurationSeconds(
int value) { m_durationSecondsHasBeenSet =
true; m_durationSeconds = value; }
275 inline void SetExternalId(
const char* value) { m_externalIdHasBeenSet =
true; m_externalId.assign(value); }
297 inline void SetSerialNumber(
const char* value) { m_serialNumberHasBeenSet =
true; m_serialNumber.assign(value); }
316 inline void SetTokenCode(
const char* value) { m_tokenCodeHasBeenSet =
true; m_tokenCode.assign(value); }
344 inline void SetSourceIdentity(
const char* value) { m_sourceIdentityHasBeenSet =
true; m_sourceIdentity.assign(value); }
373 bool m_roleArnHasBeenSet =
false;
376 bool m_roleSessionNameHasBeenSet =
false;
379 bool m_policyArnsHasBeenSet =
false;
382 bool m_policyHasBeenSet =
false;
384 int m_durationSeconds;
385 bool m_durationSecondsHasBeenSet =
false;
388 bool m_tagsHasBeenSet =
false;
391 bool m_transitiveTagKeysHasBeenSet =
false;
394 bool m_externalIdHasBeenSet =
false;
397 bool m_serialNumberHasBeenSet =
false;
400 bool m_tokenCodeHasBeenSet =
false;
403 bool m_sourceIdentityHasBeenSet =
false;
406 bool m_providedContextsHasBeenSet =
false;
AssumeRoleRequest & WithRoleSessionName(const Aws::String &value)
AssumeRoleRequest & WithPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
virtual const char * GetServiceRequestName() const override
void SetTransitiveTagKeys(Aws::Vector< Aws::String > &&value)
const Aws::String & GetRoleArn() const
void SetExternalId(const char *value)
AssumeRoleRequest & WithExternalId(const char *value)
AssumeRoleRequest & AddPolicyArns(PolicyDescriptorType &&value)
AssumeRoleRequest & WithRoleArn(const Aws::String &value)
AssumeRoleRequest & AddTransitiveTagKeys(const char *value)
const Aws::String & GetSerialNumber() const
void SetSerialNumber(const Aws::String &value)
bool RoleSessionNameHasBeenSet() const
bool RoleArnHasBeenSet() const
void SetSerialNumber(const char *value)
AssumeRoleRequest & WithSourceIdentity(const char *value)
AssumeRoleRequest & AddTags(Tag &&value)
void SetTokenCode(Aws::String &&value)
AssumeRoleRequest & WithTokenCode(Aws::String &&value)
bool TransitiveTagKeysHasBeenSet() const
AssumeRoleRequest & WithSerialNumber(const char *value)
void SetPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
void SetRoleArn(Aws::String &&value)
void SetTokenCode(const char *value)
void SetRoleArn(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
AssumeRoleRequest & WithTokenCode(const char *value)
AssumeRoleRequest & WithTags(const Aws::Vector< Tag > &value)
bool ExternalIdHasBeenSet() const
AssumeRoleRequest & WithRoleSessionName(const char *value)
void SetDurationSeconds(int value)
void SetTransitiveTagKeys(const Aws::Vector< Aws::String > &value)
void SetSourceIdentity(const char *value)
bool SourceIdentityHasBeenSet() const
void SetProvidedContexts(Aws::Vector< ProvidedContext > &&value)
bool TokenCodeHasBeenSet() const
void SetPolicy(const char *value)
void SetPolicy(Aws::String &&value)
void SetSourceIdentity(Aws::String &&value)
AssumeRoleRequest & WithSourceIdentity(Aws::String &&value)
void SetTokenCode(const Aws::String &value)
AssumeRoleRequest & WithExternalId(Aws::String &&value)
void SetExternalId(const Aws::String &value)
AssumeRoleRequest & WithDurationSeconds(int value)
const Aws::String & GetPolicy() const
AssumeRoleRequest & AddTransitiveTagKeys(const Aws::String &value)
AssumeRoleRequest & WithPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
void SetTags(const Aws::Vector< Tag > &value)
bool TagsHasBeenSet() const
AWS_STS_API Aws::String SerializePayload() const override
AssumeRoleRequest & WithPolicy(Aws::String &&value)
const Aws::String & GetSourceIdentity() const
AssumeRoleRequest & WithProvidedContexts(Aws::Vector< ProvidedContext > &&value)
AssumeRoleRequest & WithRoleArn(const char *value)
AssumeRoleRequest & WithPolicy(const char *value)
AssumeRoleRequest & AddProvidedContexts(const ProvidedContext &value)
const Aws::Vector< Aws::String > & GetTransitiveTagKeys() const
AssumeRoleRequest & WithSerialNumber(Aws::String &&value)
void SetExternalId(Aws::String &&value)
AssumeRoleRequest & AddTags(const Tag &value)
AssumeRoleRequest & WithTransitiveTagKeys(Aws::Vector< Aws::String > &&value)
AssumeRoleRequest & WithRoleArn(Aws::String &&value)
void SetSourceIdentity(const Aws::String &value)
AssumeRoleRequest & WithSerialNumber(const Aws::String &value)
AWS_STS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssumeRoleRequest & WithPolicy(const Aws::String &value)
AssumeRoleRequest & WithTransitiveTagKeys(const Aws::Vector< Aws::String > &value)
void SetPolicy(const Aws::String &value)
void SetRoleSessionName(const Aws::String &value)
const Aws::String & GetTokenCode() const
AssumeRoleRequest & WithProvidedContexts(const Aws::Vector< ProvidedContext > &value)
bool DurationSecondsHasBeenSet() const
bool PolicyHasBeenSet() const
const Aws::String & GetExternalId() const
const Aws::Vector< Tag > & GetTags() const
AssumeRoleRequest & AddTransitiveTagKeys(Aws::String &&value)
AWS_STS_API AssumeRoleRequest()
void SetRoleArn(const Aws::String &value)
int GetDurationSeconds() const
AssumeRoleRequest & WithExternalId(const Aws::String &value)
AssumeRoleRequest & AddPolicyArns(const PolicyDescriptorType &value)
AssumeRoleRequest & WithTags(Aws::Vector< Tag > &&value)
bool ProvidedContextsHasBeenSet() const
void SetProvidedContexts(const Aws::Vector< ProvidedContext > &value)
void SetPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
AssumeRoleRequest & WithRoleSessionName(Aws::String &&value)
void SetRoleSessionName(Aws::String &&value)
void SetRoleSessionName(const char *value)
const Aws::Vector< ProvidedContext > & GetProvidedContexts() const
AssumeRoleRequest & WithSourceIdentity(const Aws::String &value)
void SetSerialNumber(Aws::String &&value)
bool PolicyArnsHasBeenSet() const
AssumeRoleRequest & WithTokenCode(const Aws::String &value)
bool SerialNumberHasBeenSet() const
const Aws::String & GetRoleSessionName() const
AssumeRoleRequest & AddProvidedContexts(ProvidedContext &&value)
const Aws::Vector< PolicyDescriptorType > & GetPolicyArns() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector