AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssumeRoleWithWebIdentityRequest.h
1
6#pragma once
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 <utility>
13
14namespace Aws
15{
16namespace STS
17{
18namespace 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_STS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_STS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
48 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
49 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
50 inline AssumeRoleWithWebIdentityRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
51 inline AssumeRoleWithWebIdentityRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
52 inline AssumeRoleWithWebIdentityRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
54
56
66 inline const Aws::String& GetRoleSessionName() const{ return m_roleSessionName; }
67 inline bool RoleSessionNameHasBeenSet() const { return m_roleSessionNameHasBeenSet; }
68 inline void SetRoleSessionName(const Aws::String& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = value; }
69 inline void SetRoleSessionName(Aws::String&& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = std::move(value); }
70 inline void SetRoleSessionName(const char* value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName.assign(value); }
72 inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(Aws::String&& value) { SetRoleSessionName(std::move(value)); return *this;}
73 inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(const char* value) { SetRoleSessionName(value); return *this;}
75
77
84 inline const Aws::String& GetWebIdentityToken() const{ return m_webIdentityToken; }
85 inline bool WebIdentityTokenHasBeenSet() const { return m_webIdentityTokenHasBeenSet; }
86 inline void SetWebIdentityToken(const Aws::String& value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken = value; }
87 inline void SetWebIdentityToken(Aws::String&& value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken = std::move(value); }
88 inline void SetWebIdentityToken(const char* value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken.assign(value); }
90 inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(Aws::String&& value) { SetWebIdentityToken(std::move(value)); return *this;}
91 inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(const char* value) { SetWebIdentityToken(value); return *this;}
93
95
103 inline const Aws::String& GetProviderId() const{ return m_providerId; }
104 inline bool ProviderIdHasBeenSet() const { return m_providerIdHasBeenSet; }
105 inline void SetProviderId(const Aws::String& value) { m_providerIdHasBeenSet = true; m_providerId = value; }
106 inline void SetProviderId(Aws::String&& value) { m_providerIdHasBeenSet = true; m_providerId = std::move(value); }
107 inline void SetProviderId(const char* value) { m_providerIdHasBeenSet = true; m_providerId.assign(value); }
108 inline AssumeRoleWithWebIdentityRequest& WithProviderId(const Aws::String& value) { SetProviderId(value); return *this;}
109 inline AssumeRoleWithWebIdentityRequest& WithProviderId(Aws::String&& value) { SetProviderId(std::move(value)); return *this;}
110 inline AssumeRoleWithWebIdentityRequest& WithProviderId(const char* value) { SetProviderId(value); return *this;}
112
114
139 inline const Aws::Vector<PolicyDescriptorType>& GetPolicyArns() const{ return m_policyArns; }
140 inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
141 inline void SetPolicyArns(const Aws::Vector<PolicyDescriptorType>& value) { m_policyArnsHasBeenSet = true; m_policyArns = value; }
142 inline void SetPolicyArns(Aws::Vector<PolicyDescriptorType>&& value) { m_policyArnsHasBeenSet = true; m_policyArns = std::move(value); }
145 inline AssumeRoleWithWebIdentityRequest& AddPolicyArns(const PolicyDescriptorType& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(value); return *this; }
146 inline AssumeRoleWithWebIdentityRequest& AddPolicyArns(PolicyDescriptorType&& value) { m_policyArnsHasBeenSet = true; m_policyArns.push_back(std::move(value)); return *this; }
148
150
173 inline const Aws::String& GetPolicy() const{ return m_policy; }
174 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
175 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
176 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
177 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
178 inline AssumeRoleWithWebIdentityRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
179 inline AssumeRoleWithWebIdentityRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
180 inline AssumeRoleWithWebIdentityRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
182
184
204 inline int GetDurationSeconds() const{ return m_durationSeconds; }
205 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
206 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
209 private:
210
211 Aws::String m_roleArn;
212 bool m_roleArnHasBeenSet = false;
213
214 Aws::String m_roleSessionName;
215 bool m_roleSessionNameHasBeenSet = false;
216
217 Aws::String m_webIdentityToken;
218 bool m_webIdentityTokenHasBeenSet = false;
219
220 Aws::String m_providerId;
221 bool m_providerIdHasBeenSet = false;
222
224 bool m_policyArnsHasBeenSet = false;
225
226 Aws::String m_policy;
227 bool m_policyHasBeenSet = false;
228
229 int m_durationSeconds;
230 bool m_durationSecondsHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace STS
235} // namespace Aws
AWS_STS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssumeRoleWithWebIdentityRequest & WithProviderId(const char *value)
const Aws::Vector< PolicyDescriptorType > & GetPolicyArns() const
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(Aws::String &&value)
void SetPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
AssumeRoleWithWebIdentityRequest & WithProviderId(Aws::String &&value)
AssumeRoleWithWebIdentityRequest & WithDurationSeconds(int value)
AssumeRoleWithWebIdentityRequest & WithPolicy(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithProviderId(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithPolicy(const char *value)
AWS_STS_API Aws::String SerializePayload() const override
AssumeRoleWithWebIdentityRequest & WithRoleArn(Aws::String &&value)
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(Aws::String &&value)
void SetPolicyArns(Aws::Vector< PolicyDescriptorType > &&value)
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(const char *value)
AssumeRoleWithWebIdentityRequest & WithPolicyArns(const Aws::Vector< PolicyDescriptorType > &value)
AssumeRoleWithWebIdentityRequest & WithRoleArn(const char *value)
AssumeRoleWithWebIdentityRequest & AddPolicyArns(const PolicyDescriptorType &value)
AssumeRoleWithWebIdentityRequest & WithRoleArn(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithPolicy(Aws::String &&value)
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(const char *value)
AssumeRoleWithWebIdentityRequest & AddPolicyArns(PolicyDescriptorType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector