AWS SDK for C++  0.12.9
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 
80  inline const Aws::String& GetRoleSessionName() const{ return m_roleSessionName; }
81 
92  inline void SetRoleSessionName(const Aws::String& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = value; }
93 
104  inline void SetRoleSessionName(Aws::String&& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = value; }
105 
116  inline void SetRoleSessionName(const char* value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName.assign(value); }
117 
128  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(const Aws::String& value) { SetRoleSessionName(value); return *this;}
129 
140  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(Aws::String&& value) { SetRoleSessionName(value); return *this;}
141 
152  inline AssumeRoleWithWebIdentityRequest& WithRoleSessionName(const char* value) { SetRoleSessionName(value); return *this;}
153 
160  inline const Aws::String& GetWebIdentityToken() const{ return m_webIdentityToken; }
161 
168  inline void SetWebIdentityToken(const Aws::String& value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken = value; }
169 
176  inline void SetWebIdentityToken(Aws::String&& value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken = value; }
177 
184  inline void SetWebIdentityToken(const char* value) { m_webIdentityTokenHasBeenSet = true; m_webIdentityToken.assign(value); }
185 
192  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(const Aws::String& value) { SetWebIdentityToken(value); return *this;}
193 
200  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(Aws::String&& value) { SetWebIdentityToken(value); return *this;}
201 
208  inline AssumeRoleWithWebIdentityRequest& WithWebIdentityToken(const char* value) { SetWebIdentityToken(value); return *this;}
209 
218  inline const Aws::String& GetProviderId() const{ return m_providerId; }
219 
228  inline void SetProviderId(const Aws::String& value) { m_providerIdHasBeenSet = true; m_providerId = value; }
229 
238  inline void SetProviderId(Aws::String&& value) { m_providerIdHasBeenSet = true; m_providerId = value; }
239 
248  inline void SetProviderId(const char* value) { m_providerIdHasBeenSet = true; m_providerId.assign(value); }
249 
258  inline AssumeRoleWithWebIdentityRequest& WithProviderId(const Aws::String& value) { SetProviderId(value); return *this;}
259 
268  inline AssumeRoleWithWebIdentityRequest& WithProviderId(Aws::String&& value) { SetProviderId(value); return *this;}
269 
278  inline AssumeRoleWithWebIdentityRequest& WithProviderId(const char* value) { SetProviderId(value); return *this;}
279 
301  inline const Aws::String& GetPolicy() const{ return m_policy; }
302 
324  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
325 
347  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = value; }
348 
370  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
371 
393  inline AssumeRoleWithWebIdentityRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
394 
416  inline AssumeRoleWithWebIdentityRequest& WithPolicy(Aws::String&& value) { SetPolicy(value); return *this;}
417 
439  inline AssumeRoleWithWebIdentityRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
440 
446  inline long GetDurationSeconds() const{ return m_durationSeconds; }
447 
453  inline void SetDurationSeconds(long value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
454 
460  inline AssumeRoleWithWebIdentityRequest& WithDurationSeconds(long value) { SetDurationSeconds(value); return *this;}
461 
462  private:
463  Aws::String m_roleArn;
464  bool m_roleArnHasBeenSet;
465  Aws::String m_roleSessionName;
466  bool m_roleSessionNameHasBeenSet;
467  Aws::String m_webIdentityToken;
468  bool m_webIdentityTokenHasBeenSet;
469  Aws::String m_providerId;
470  bool m_providerIdHasBeenSet;
471  Aws::String m_policy;
472  bool m_policyHasBeenSet;
473  long m_durationSeconds;
474  bool m_durationSecondsHasBeenSet;
475  };
476 
477 } // namespace Model
478 } // namespace STS
479 } // namespace Aws
#define AWS_STS_API
Definition: STS_EXPORTS.h:34
AssumeRoleWithWebIdentityRequest & WithRoleArn(const Aws::String &value)
AssumeRoleWithWebIdentityRequest & WithPolicy(const char *value)
AssumeRoleWithWebIdentityRequest & WithDurationSeconds(long 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 & 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).