AWS SDK for C++  1.9.107
AWS SDK for C++
AssumeRoleWithWebIdentityRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sts/STS_EXPORTS.h>
8 #include <aws/sts/STSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace STS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "AssumeRoleWithWebIdentity"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
45 
49  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
50 
54  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
55 
59  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
60 
64  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 
69  inline AssumeRoleWithWebIdentityRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
70 
74  inline AssumeRoleWithWebIdentityRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
75 
79  inline AssumeRoleWithWebIdentityRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
80 
81 
92  inline const Aws::String& GetRoleSessionName() const{ return m_roleSessionName; }
93 
104  inline bool RoleSessionNameHasBeenSet() const { return m_roleSessionNameHasBeenSet; }
105 
116  inline void SetRoleSessionName(const Aws::String& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = value; }
117 
128  inline void SetRoleSessionName(Aws::String&& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = std::move(value); }
129 
140  inline void SetRoleSessionName(const char* value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName.assign(value); }
141 
152  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(const Aws::String& value) { SetRoleSessionName(value); return *this;}
153 
164  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(Aws::String&& value) { SetRoleSessionName(std::move(value)); return *this;}
165 
176  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(const char* value) { SetRoleSessionName(value); return *this;}
177 
178 
185  inline const Aws::String& GetWebIdentityToken() const{ return m_webIdentityToken; }
186 
193  inline bool WebIdentityTokenHasBeenSet() const { return m_webIdentityTokenHasBeenSet; }
194 
201  inline void SetWebIdentityToken(const Aws::String& value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken = value; }
202 
209  inline void SetWebIdentityToken(Aws::String&& value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken = std::move(value); }
210 
217  inline void SetWebIdentityToken(const char* value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken.assign(value); }
218 
225  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(const Aws::String& value) { SetWebIdentityToken(value); return *this;}
226 
233  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(Aws::String&& value) { SetWebIdentityToken(std::move(value)); return *this;}
234 
241  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(const char* value) { SetWebIdentityToken(value); return *this;}
242 
243 
252  inline const Aws::String& GetProviderId() const{ return m_providerId; }
253 
262  inline bool ProviderIdHasBeenSet() const { return m_providerIdHasBeenSet; }
263 
272  inline void SetProviderId(const Aws::String& value) { m_providerIdHasBeenSet = true; m_providerId = value; }
273 
282  inline void SetProviderId(Aws::String&& value) { m_providerIdHasBeenSet = true; m_providerId = std::move(value); }
283 
292  inline void SetProviderId(const char* value) { m_providerIdHasBeenSet = true; m_providerId.assign(value); }
293 
302  inline AssumeRoleWithWebIdentityRequest& WithProviderId(const Aws::String& value) { SetProviderId(value); return *this;}
303 
312  inline AssumeRoleWithWebIdentityRequest& WithProviderId(Aws::String&& value) { SetProviderId(std::move(value)); return *this;}
313 
322  inline AssumeRoleWithWebIdentityRequest& WithProviderId(const char* value) { SetProviderId(value); return *this;}
323 
324 
350  inline const Aws::Vector<PolicyDescriptorType>& GetPolicyArns() const{ return m_policyArns; }
351 
377  inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
378 
404  inline void SetPolicyArns(const Aws::Vector<PolicyDescriptorType>& value) { m_policyArnsHasBeenSet = true; m_policyArns = value; }
405 
431  inline void SetPolicyArns(Aws::Vector<PolicyDescriptorType>&& value) { m_policyArnsHasBeenSet = true; m_policyArns = std::move(value); }
432 
458  inline AssumeRoleWithWebIdentityRequest& WithPolicyArns(const Aws::Vector<PolicyDescriptorType>& value) { SetPolicyArns(value); return *this;}
459 
485  inline AssumeRoleWithWebIdentityRequest& WithPolicyArns(Aws::Vector<PolicyDescriptorType>&& value) { SetPolicyArns(std::move(value)); return *this;}
486 
512  inline AssumeRoleWithWebIdentityRequest& AddPolicyArns(const PolicyDescriptorType& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(value); return *this; }
513 
539  inline AssumeRoleWithWebIdentityRequest& AddPolicyArns(PolicyDescriptorType&& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(std::move(value)); return *this; }
540 
541 
564  inline const Aws::String& GetPolicy() const{ return m_policy; }
565 
588  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
589 
612  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
613 
636  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
637 
660  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
661 
684  inline AssumeRoleWithWebIdentityRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
685 
708  inline AssumeRoleWithWebIdentityRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
709 
732  inline AssumeRoleWithWebIdentityRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
733 
734 
755  inline int GetDurationSeconds() const{ return m_durationSeconds; }
756 
777  inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
778 
799  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
800 
821  inline AssumeRoleWithWebIdentityRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
822 
823  private:
824 
825  Aws::String m_roleArn;
826  bool m_roleArnHasBeenSet;
827 
828  Aws::String m_roleSessionName;
829  bool m_roleSessionNameHasBeenSet;
830 
831  Aws::String m_webIdentityToken;
832  bool m_webIdentityTokenHasBeenSet;
833 
834  Aws::String m_providerId;
835  bool m_providerIdHasBeenSet;
836 
838  bool m_policyArnsHasBeenSet;
839 
840  Aws::String m_policy;
841  bool m_policyHasBeenSet;
842 
843  int m_durationSeconds;
844  bool m_durationSecondsHasBeenSet;
845  };
846 
847 } // namespace Model
848 } // namespace STS
849 } // namespace Aws
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WebIdentityTokenHasBeenSet
bool WebIdentityTokenHasBeenSet() const
Definition: AssumeRoleWithWebIdentityRequest.h:193
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::GetPolicyArns
const Aws::Vector< PolicyDescriptorType > & GetPolicyArns() const
Definition: AssumeRoleWithWebIdentityRequest.h:350
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::DurationSecondsHasBeenSet
bool DurationSecondsHasBeenSet() const
Definition: AssumeRoleWithWebIdentityRequest.h:777
Aws::STS::STSRequest
Definition: STSRequest.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithPolicyArns
AssumeRoleWithWebIdentityRequest & WithPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
Definition: AssumeRoleWithWebIdentityRequest.h:458
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithWebIdentityToken
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:225
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithWebIdentityToken
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:233
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetPolicyArns
void SetPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:431
Aws::STS::Model::PolicyDescriptorType
Definition: PolicyDescriptorType.h:33
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: AssumeRoleWithWebIdentityRequest.h:49
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetDurationSeconds
void SetDurationSeconds(int value)
Definition: AssumeRoleWithWebIdentityRequest.h:799
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithRoleSessionName
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:164
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:54
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithPolicyArns
AssumeRoleWithWebIdentityRequest & WithPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:485
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::GetRoleSessionName
const Aws::String & GetRoleSessionName() const
Definition: AssumeRoleWithWebIdentityRequest.h:92
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:636
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::AddPolicyArns
AssumeRoleWithWebIdentityRequest & AddPolicyArns(const PolicyDescriptorType &value)
Definition: AssumeRoleWithWebIdentityRequest.h:512
AWSVector.h
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithProviderId
AssumeRoleWithWebIdentityRequest & WithProviderId(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:322
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::RoleSessionNameHasBeenSet
bool RoleSessionNameHasBeenSet() const
Definition: AssumeRoleWithWebIdentityRequest.h:104
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:612
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::GetWebIdentityToken
const Aws::String & GetWebIdentityToken() const
Definition: AssumeRoleWithWebIdentityRequest.h:185
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::ProviderIdHasBeenSet
bool ProviderIdHasBeenSet() const
Definition: AssumeRoleWithWebIdentityRequest.h:262
STS_EXPORTS.h
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetRoleSessionName
void SetRoleSessionName(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:116
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssumeRoleWithWebIdentityRequest.h:32
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithPolicy
AssumeRoleWithWebIdentityRequest & WithPolicy(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:684
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::AddPolicyArns
AssumeRoleWithWebIdentityRequest & AddPolicyArns(PolicyDescriptorType &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:539
PolicyDescriptorType.h
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithPolicy
AssumeRoleWithWebIdentityRequest & WithPolicy(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:708
AWSString.h
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithRoleSessionName
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:176
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:64
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::GetProviderId
const Aws::String & GetProviderId() const
Definition: AssumeRoleWithWebIdentityRequest.h:252
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:59
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetProviderId
void SetProviderId(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:272
Aws::STS::Model::AssumeRoleWithWebIdentityRequest
Definition: AssumeRoleWithWebIdentityRequest.h:24
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetProviderId
void SetProviderId(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:292
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithDurationSeconds
AssumeRoleWithWebIdentityRequest & WithDurationSeconds(int value)
Definition: AssumeRoleWithWebIdentityRequest.h:821
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetWebIdentityToken
void SetWebIdentityToken(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:217
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetRoleSessionName
void SetRoleSessionName(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:140
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithPolicy
AssumeRoleWithWebIdentityRequest & WithPolicy(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:732
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithRoleArn
AssumeRoleWithWebIdentityRequest & WithRoleArn(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithRoleArn
AssumeRoleWithWebIdentityRequest & WithRoleArn(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:79
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetWebIdentityToken
void SetWebIdentityToken(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:209
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::AssumeRoleWithWebIdentityRequest
AssumeRoleWithWebIdentityRequest()
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithRoleSessionName
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:152
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetProviderId
void SetProviderId(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:282
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: AssumeRoleWithWebIdentityRequest.h:588
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetPolicy
void SetPolicy(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:660
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithProviderId
AssumeRoleWithWebIdentityRequest & WithProviderId(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:312
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithRoleArn
AssumeRoleWithWebIdentityRequest & WithRoleArn(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:74
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: AssumeRoleWithWebIdentityRequest.h:564
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: AssumeRoleWithWebIdentityRequest.h:44
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::PolicyArnsHasBeenSet
bool PolicyArnsHasBeenSet() const
Definition: AssumeRoleWithWebIdentityRequest.h:377
STSRequest.h
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetPolicyArns
void SetPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
Definition: AssumeRoleWithWebIdentityRequest.h:404
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetWebIdentityToken
void SetWebIdentityToken(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:201
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::GetDurationSeconds
int GetDurationSeconds() const
Definition: AssumeRoleWithWebIdentityRequest.h:755
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithProviderId
AssumeRoleWithWebIdentityRequest & WithProviderId(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityRequest.h:302
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::SetRoleSessionName
void SetRoleSessionName(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityRequest.h:128
Aws::STS::Model::AssumeRoleWithWebIdentityRequest::WithWebIdentityToken
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(const char *value)
Definition: AssumeRoleWithWebIdentityRequest.h:241