AWS SDK for C++  0.14.3
AWS SDK for C++
AssumeRoleWithSAMLRequest.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 AssumeRoleWithSAMLRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
59 
63  inline AssumeRoleWithSAMLRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
64 
68  inline AssumeRoleWithSAMLRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
69 
74  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
75 
80  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
81 
86  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
87 
92  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
93 
98  inline AssumeRoleWithSAMLRequest& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
99 
104  inline AssumeRoleWithSAMLRequest& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(value); return *this;}
105 
110  inline AssumeRoleWithSAMLRequest& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
111 
118  inline const Aws::String& GetSAMLAssertion() const{ return m_sAMLAssertion; }
119 
126  inline void SetSAMLAssertion(const Aws::String& value) { m_sAMLAssertionHasBeenSet = true; m_sAMLAssertion = value; }
127 
134  inline void SetSAMLAssertion(Aws::String&& value) { m_sAMLAssertionHasBeenSet = true; m_sAMLAssertion = value; }
135 
142  inline void SetSAMLAssertion(const char* value) { m_sAMLAssertionHasBeenSet = true; m_sAMLAssertion.assign(value); }
143 
150  inline AssumeRoleWithSAMLRequest& WithSAMLAssertion(const Aws::String& value) { SetSAMLAssertion(value); return *this;}
151 
158  inline AssumeRoleWithSAMLRequest& WithSAMLAssertion(Aws::String&& value) { SetSAMLAssertion(value); return *this;}
159 
166  inline AssumeRoleWithSAMLRequest& WithSAMLAssertion(const char* value) { SetSAMLAssertion(value); return *this;}
167 
190  inline const Aws::String& GetPolicy() const{ return m_policy; }
191 
214  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
215 
238  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = value; }
239 
262  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
263 
286  inline AssumeRoleWithSAMLRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
287 
310  inline AssumeRoleWithSAMLRequest& WithPolicy(Aws::String&& value) { SetPolicy(value); return *this;}
311 
334  inline AssumeRoleWithSAMLRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
335 
351  inline int GetDurationSeconds() const{ return m_durationSeconds; }
352 
368  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
369 
385  inline AssumeRoleWithSAMLRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
386 
387  private:
388  Aws::String m_roleArn;
389  bool m_roleArnHasBeenSet;
390  Aws::String m_principalArn;
391  bool m_principalArnHasBeenSet;
392  Aws::String m_sAMLAssertion;
393  bool m_sAMLAssertionHasBeenSet;
394  Aws::String m_policy;
395  bool m_policyHasBeenSet;
396  int m_durationSeconds;
397  bool m_durationSecondsHasBeenSet;
398  };
399 
400 } // namespace Model
401 } // namespace STS
402 } // namespace Aws
#define AWS_STS_API
Definition: STS_EXPORTS.h:37
AssumeRoleWithSAMLRequest & WithPolicy(Aws::String &&value)
AssumeRoleWithSAMLRequest & WithSAMLAssertion(const char *value)
AssumeRoleWithSAMLRequest & WithSAMLAssertion(const Aws::String &value)
AssumeRoleWithSAMLRequest & WithPrincipalArn(const char *value)
AssumeRoleWithSAMLRequest & WithPolicy(const char *value)
AssumeRoleWithSAMLRequest & WithSAMLAssertion(Aws::String &&value)
AssumeRoleWithSAMLRequest & WithPrincipalArn(Aws::String &&value)
AssumeRoleWithSAMLRequest & WithRoleArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AssumeRoleWithSAMLRequest & WithPolicy(const Aws::String &value)
AssumeRoleWithSAMLRequest & WithPrincipalArn(const Aws::String &value)
AssumeRoleWithSAMLRequest & WithRoleArn(const Aws::String &value)
AssumeRoleWithSAMLRequest & WithDurationSeconds(int value)
AssumeRoleWithSAMLRequest & WithRoleArn(Aws::String &&value)
JSON (JavaScript Object Notation).