AWS SDK for C++  1.9.106
AWS SDK for C++
AssumeRoleWithSAMLRequest.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 "AssumeRoleWithSAML"; }
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 AssumeRoleWithSAMLRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
70 
74  inline AssumeRoleWithSAMLRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
75 
79  inline AssumeRoleWithSAMLRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
80 
81 
86  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
87 
92  inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
93 
98  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
99 
104  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
105 
110  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
111 
116  inline AssumeRoleWithSAMLRequest& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
117 
122  inline AssumeRoleWithSAMLRequest& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
123 
128  inline AssumeRoleWithSAMLRequest& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
129 
130 
137  inline const Aws::String& GetSAMLAssertion() const{ return m_sAMLAssertion; }
138 
145  inline bool SAMLAssertionHasBeenSet() const { return m_sAMLAssertionHasBeenSet; }
146 
153  inline void SetSAMLAssertion(const Aws::String& value) { m_sAMLAssertionHasBeenSet = true; m_sAMLAssertion = value; }
154 
161  inline void SetSAMLAssertion(Aws::String&& value) { m_sAMLAssertionHasBeenSet = true; m_sAMLAssertion = std::move(value); }
162 
169  inline void SetSAMLAssertion(const char* value) { m_sAMLAssertionHasBeenSet = true; m_sAMLAssertion.assign(value); }
170 
177  inline AssumeRoleWithSAMLRequest& WithSAMLAssertion(const Aws::String& value) { SetSAMLAssertion(value); return *this;}
178 
185  inline AssumeRoleWithSAMLRequest& WithSAMLAssertion(Aws::String&& value) { SetSAMLAssertion(std::move(value)); return *this;}
186 
193  inline AssumeRoleWithSAMLRequest& WithSAMLAssertion(const char* value) { SetSAMLAssertion(value); return *this;}
194 
195 
221  inline const Aws::Vector<PolicyDescriptorType>& GetPolicyArns() const{ return m_policyArns; }
222 
248  inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
249 
275  inline void SetPolicyArns(const Aws::Vector<PolicyDescriptorType>& value) { m_policyArnsHasBeenSet = true; m_policyArns = value; }
276 
302  inline void SetPolicyArns(Aws::Vector<PolicyDescriptorType>&& value) { m_policyArnsHasBeenSet = true; m_policyArns = std::move(value); }
303 
329  inline AssumeRoleWithSAMLRequest& WithPolicyArns(const Aws::Vector<PolicyDescriptorType>& value) { SetPolicyArns(value); return *this;}
330 
356  inline AssumeRoleWithSAMLRequest& WithPolicyArns(Aws::Vector<PolicyDescriptorType>&& value) { SetPolicyArns(std::move(value)); return *this;}
357 
383  inline AssumeRoleWithSAMLRequest& AddPolicyArns(const PolicyDescriptorType& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(value); return *this; }
384 
410  inline AssumeRoleWithSAMLRequest& AddPolicyArns(PolicyDescriptorType&& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(std::move(value)); return *this; }
411 
412 
436  inline const Aws::String& GetPolicy() const{ return m_policy; }
437 
461  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
462 
486  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
487 
511  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
512 
536  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
537 
561  inline AssumeRoleWithSAMLRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
562 
586  inline AssumeRoleWithSAMLRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
587 
611  inline AssumeRoleWithSAMLRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
612 
613 
637  inline int GetDurationSeconds() const{ return m_durationSeconds; }
638 
662  inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
663 
687  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
688 
712  inline AssumeRoleWithSAMLRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
713 
714  private:
715 
716  Aws::String m_roleArn;
717  bool m_roleArnHasBeenSet;
718 
719  Aws::String m_principalArn;
720  bool m_principalArnHasBeenSet;
721 
722  Aws::String m_sAMLAssertion;
723  bool m_sAMLAssertionHasBeenSet;
724 
726  bool m_policyArnsHasBeenSet;
727 
728  Aws::String m_policy;
729  bool m_policyHasBeenSet;
730 
731  int m_durationSeconds;
732  bool m_durationSecondsHasBeenSet;
733  };
734 
735 } // namespace Model
736 } // namespace STS
737 } // namespace Aws
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetSAMLAssertion
void SetSAMLAssertion(Aws::String &&value)
Definition: AssumeRoleWithSAMLRequest.h:161
Aws::STS::STSRequest
Definition: STSRequest.h:17
Aws::STS::Model::AssumeRoleWithSAMLRequest::AddPolicyArns
AssumeRoleWithSAMLRequest & AddPolicyArns(const PolicyDescriptorType &value)
Definition: AssumeRoleWithSAMLRequest.h:383
Aws::Http::URI
Definition: URI.h:32
Aws::STS::Model::AssumeRoleWithSAMLRequest
Definition: AssumeRoleWithSAMLRequest.h:24
Aws::STS::Model::PolicyDescriptorType
Definition: PolicyDescriptorType.h:33
Aws::STS::Model::AssumeRoleWithSAMLRequest::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: AssumeRoleWithSAMLRequest.h:92
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: AssumeRoleWithSAMLRequest.h:98
Aws::STS::Model::AssumeRoleWithSAMLRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssumeRoleWithSAMLRequest.h:32
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithPolicy
AssumeRoleWithSAMLRequest & WithPolicy(const char *value)
Definition: AssumeRoleWithSAMLRequest.h:611
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithSAMLAssertion
AssumeRoleWithSAMLRequest & WithSAMLAssertion(Aws::String &&value)
Definition: AssumeRoleWithSAMLRequest.h:185
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetPolicy
void SetPolicy(const char *value)
Definition: AssumeRoleWithSAMLRequest.h:536
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithRoleArn
AssumeRoleWithSAMLRequest & WithRoleArn(const char *value)
Definition: AssumeRoleWithSAMLRequest.h:79
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::AssumeRoleWithSAMLRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: AssumeRoleWithSAMLRequest.h:436
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithSAMLAssertion
AssumeRoleWithSAMLRequest & WithSAMLAssertion(const char *value)
Definition: AssumeRoleWithSAMLRequest.h:193
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::STS::Model::AssumeRoleWithSAMLRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: AssumeRoleWithSAMLRequest.h:461
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithPrincipalArn
AssumeRoleWithSAMLRequest & WithPrincipalArn(const Aws::String &value)
Definition: AssumeRoleWithSAMLRequest.h:116
AWSVector.h
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetDurationSeconds
void SetDurationSeconds(int value)
Definition: AssumeRoleWithSAMLRequest.h:687
Aws::STS::Model::AssumeRoleWithSAMLRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithPolicyArns
AssumeRoleWithSAMLRequest & WithPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
Definition: AssumeRoleWithSAMLRequest.h:356
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithPrincipalArn
AssumeRoleWithSAMLRequest & WithPrincipalArn(const char *value)
Definition: AssumeRoleWithSAMLRequest.h:128
Aws::STS::Model::AssumeRoleWithSAMLRequest::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: AssumeRoleWithSAMLRequest.h:86
Aws::STS::Model::AssumeRoleWithSAMLRequest::AddPolicyArns
AssumeRoleWithSAMLRequest & AddPolicyArns(PolicyDescriptorType &&value)
Definition: AssumeRoleWithSAMLRequest.h:410
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetPolicyArns
void SetPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
Definition: AssumeRoleWithSAMLRequest.h:275
STS_EXPORTS.h
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithPolicyArns
AssumeRoleWithSAMLRequest & WithPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
Definition: AssumeRoleWithSAMLRequest.h:329
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetSAMLAssertion
void SetSAMLAssertion(const Aws::String &value)
Definition: AssumeRoleWithSAMLRequest.h:153
Aws::STS::Model::AssumeRoleWithSAMLRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: AssumeRoleWithSAMLRequest.h:44
Aws::STS::Model::AssumeRoleWithSAMLRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: AssumeRoleWithSAMLRequest.h:49
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: AssumeRoleWithSAMLRequest.h:64
PolicyDescriptorType.h
AWSString.h
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithPrincipalArn
AssumeRoleWithSAMLRequest & WithPrincipalArn(Aws::String &&value)
Definition: AssumeRoleWithSAMLRequest.h:122
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: AssumeRoleWithSAMLRequest.h:59
Aws::STS::Model::AssumeRoleWithSAMLRequest::GetPolicyArns
const Aws::Vector< PolicyDescriptorType > & GetPolicyArns() const
Definition: AssumeRoleWithSAMLRequest.h:221
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithPolicy
AssumeRoleWithSAMLRequest & WithPolicy(Aws::String &&value)
Definition: AssumeRoleWithSAMLRequest.h:586
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetPolicyArns
void SetPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
Definition: AssumeRoleWithSAMLRequest.h:302
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithSAMLAssertion
AssumeRoleWithSAMLRequest & WithSAMLAssertion(const Aws::String &value)
Definition: AssumeRoleWithSAMLRequest.h:177
Aws::STS::Model::AssumeRoleWithSAMLRequest::PolicyArnsHasBeenSet
bool PolicyArnsHasBeenSet() const
Definition: AssumeRoleWithSAMLRequest.h:248
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: AssumeRoleWithSAMLRequest.h:110
Aws::STS::Model::AssumeRoleWithSAMLRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithRoleArn
AssumeRoleWithSAMLRequest & WithRoleArn(const Aws::String &value)
Definition: AssumeRoleWithSAMLRequest.h:69
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithDurationSeconds
AssumeRoleWithSAMLRequest & WithDurationSeconds(int value)
Definition: AssumeRoleWithSAMLRequest.h:712
Aws::STS::Model::AssumeRoleWithSAMLRequest::DurationSecondsHasBeenSet
bool DurationSecondsHasBeenSet() const
Definition: AssumeRoleWithSAMLRequest.h:662
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::AssumeRoleWithSAMLRequest::GetDurationSeconds
int GetDurationSeconds() const
Definition: AssumeRoleWithSAMLRequest.h:637
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: AssumeRoleWithSAMLRequest.h:486
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetSAMLAssertion
void SetSAMLAssertion(const char *value)
Definition: AssumeRoleWithSAMLRequest.h:169
Aws::STS::Model::AssumeRoleWithSAMLRequest::GetSAMLAssertion
const Aws::String & GetSAMLAssertion() const
Definition: AssumeRoleWithSAMLRequest.h:137
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithRoleArn
AssumeRoleWithSAMLRequest & WithRoleArn(Aws::String &&value)
Definition: AssumeRoleWithSAMLRequest.h:74
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: AssumeRoleWithSAMLRequest.h:104
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: AssumeRoleWithSAMLRequest.h:54
Aws::STS::Model::AssumeRoleWithSAMLRequest::SAMLAssertionHasBeenSet
bool SAMLAssertionHasBeenSet() const
Definition: AssumeRoleWithSAMLRequest.h:145
Aws::STS::Model::AssumeRoleWithSAMLRequest::AssumeRoleWithSAMLRequest
AssumeRoleWithSAMLRequest()
Aws::STS::Model::AssumeRoleWithSAMLRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: AssumeRoleWithSAMLRequest.h:511
STSRequest.h
Aws::STS::Model::AssumeRoleWithSAMLRequest::WithPolicy
AssumeRoleWithSAMLRequest & WithPolicy(const Aws::String &value)
Definition: AssumeRoleWithSAMLRequest.h:561