AWS SDK for C++  0.14.3
AWS SDK for C++
AssumeRoleWithWebIdentityRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sts/STS_EXPORTS.h>
17 #include <aws/sts/STSRequest.h>
19 
20 namespace Aws
21 {
22 namespace STS
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
38  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
39 
43  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
44 
48  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
49 
53  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
54 
58  inline AssumeRoleWithWebIdentityRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
59 
63  inline AssumeRoleWithWebIdentityRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
64 
68  inline AssumeRoleWithWebIdentityRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
69 
81  inline const Aws::String& GetRoleSessionName() const{ return m_roleSessionName; }
82 
94  inline void SetRoleSessionName(const Aws::String& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = value; }
95 
107  inline void SetRoleSessionName(Aws::String&& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = value; }
108 
120  inline void SetRoleSessionName(const char* value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName.assign(value); }
121 
133  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(const Aws::String& value) { SetRoleSessionName(value); return *this;}
134 
146  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(Aws::String&& value) { SetRoleSessionName(value); return *this;}
147 
159  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(const char* value) { SetRoleSessionName(value); return *this;}
160 
167  inline const Aws::String& GetWebIdentityToken() const{ return m_webIdentityToken; }
168 
175  inline void SetWebIdentityToken(const Aws::String& value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken = value; }
176 
183  inline void SetWebIdentityToken(Aws::String&& value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken = value; }
184 
191  inline void SetWebIdentityToken(const char* value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken.assign(value); }
192 
199  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(const Aws::String& value) { SetWebIdentityToken(value); return *this;}
200 
207  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(Aws::String&& value) { SetWebIdentityToken(value); return *this;}
208 
215  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(const char* value) { SetWebIdentityToken(value); return *this;}
216 
225  inline const Aws::String& GetProviderId() const{ return m_providerId; }
226 
235  inline void SetProviderId(const Aws::String& value) { m_providerIdHasBeenSet = true; m_providerId = value; }
236 
245  inline void SetProviderId(Aws::String&& value) { m_providerIdHasBeenSet = true; m_providerId = value; }
246 
255  inline void SetProviderId(const char* value) { m_providerIdHasBeenSet = true; m_providerId.assign(value); }
256 
265  inline AssumeRoleWithWebIdentityRequest& WithProviderId(const Aws::String& value) { SetProviderId(value); return *this;}
266 
275  inline AssumeRoleWithWebIdentityRequest& WithProviderId(Aws::String&& value) { SetProviderId(value); return *this;}
276 
285  inline AssumeRoleWithWebIdentityRequest& WithProviderId(const char* value) { SetProviderId(value); return *this;}
286 
308  inline const Aws::String& GetPolicy() const{ return m_policy; }
309 
331  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
332 
354  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = value; }
355 
377  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
378 
400  inline AssumeRoleWithWebIdentityRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
401 
423  inline AssumeRoleWithWebIdentityRequest& WithPolicy(Aws::String&& value) { SetPolicy(value); return *this;}
424 
446  inline AssumeRoleWithWebIdentityRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
447 
461  inline int GetDurationSeconds() const{ return m_durationSeconds; }
462 
476  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
477 
491  inline AssumeRoleWithWebIdentityRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
492 
493  private:
494  Aws::String m_roleArn;
495  bool m_roleArnHasBeenSet;
496  Aws::String m_roleSessionName;
497  bool m_roleSessionNameHasBeenSet;
498  Aws::String m_webIdentityToken;
499  bool m_webIdentityTokenHasBeenSet;
500  Aws::String m_providerId;
501  bool m_providerIdHasBeenSet;
502  Aws::String m_policy;
503  bool m_policyHasBeenSet;
504  int m_durationSeconds;
505  bool m_durationSecondsHasBeenSet;
506  };
507 
508 } // namespace Model
509 } // namespace STS
510 } // namespace Aws
#define AWS_STS_API
Definition: STS_EXPORTS.h:37
AssumeRoleWithWebIdentityRequest & WithRoleArn(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithPolicy(const char *value)
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(const char *value)
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(Aws::String &&value)
AssumeRoleWithWebIdentityRequest & WithProviderId(const char *value)
AssumeRoleWithWebIdentityRequest & WithProviderId(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithRoleArn(Aws::String &&value)
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(Aws::String &&value)
AssumeRoleWithWebIdentityRequest & WithWebIdentityToken(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithProviderId(Aws::String &&value)
AssumeRoleWithWebIdentityRequest & WithDurationSeconds(int value)
AssumeRoleWithWebIdentityRequest & WithPolicy(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AssumeRoleWithWebIdentityRequest & WithPolicy(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithRoleArn(const char *value)
AssumeRoleWithWebIdentityRequest & WithRoleSessionName(const char *value)
JSON (JavaScript Object Notation).