AWS SDK for C++  0.14.3
AWS SDK for C++
GetSessionTokenRequest.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 
43  inline int GetDurationSeconds() const{ return m_durationSeconds; }
44 
53  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
54 
63  inline GetSessionTokenRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
64 
78  inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
79 
93  inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
94 
108  inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
109 
123  inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
124 
138  inline GetSessionTokenRequest& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
139 
153  inline GetSessionTokenRequest& WithSerialNumber(Aws::String&& value) { SetSerialNumber(value); return *this;}
154 
168  inline GetSessionTokenRequest& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
169 
179  inline const Aws::String& GetTokenCode() const{ return m_tokenCode; }
180 
190  inline void SetTokenCode(const Aws::String& value) { m_tokenCodeHasBeenSet = true; m_tokenCode = value; }
191 
201  inline void SetTokenCode(Aws::String&& value) { m_tokenCodeHasBeenSet = true; m_tokenCode = value; }
202 
212  inline void SetTokenCode(const char* value) { m_tokenCodeHasBeenSet = true; m_tokenCode.assign(value); }
213 
223  inline GetSessionTokenRequest& WithTokenCode(const Aws::String& value) { SetTokenCode(value); return *this;}
224 
234  inline GetSessionTokenRequest& WithTokenCode(Aws::String&& value) { SetTokenCode(value); return *this;}
235 
245  inline GetSessionTokenRequest& WithTokenCode(const char* value) { SetTokenCode(value); return *this;}
246 
247  private:
248  int m_durationSeconds;
249  bool m_durationSecondsHasBeenSet;
250  Aws::String m_serialNumber;
251  bool m_serialNumberHasBeenSet;
252  Aws::String m_tokenCode;
253  bool m_tokenCodeHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace STS
258 } // namespace Aws
#define AWS_STS_API
Definition: STS_EXPORTS.h:37
GetSessionTokenRequest & WithTokenCode(const Aws::String &value)
const Aws::String & GetSerialNumber() const
GetSessionTokenRequest & WithTokenCode(const char *value)
GetSessionTokenRequest & WithSerialNumber(const char *value)
void SetTokenCode(const Aws::String &value)
GetSessionTokenRequest & WithSerialNumber(const Aws::String &value)
GetSessionTokenRequest & WithSerialNumber(Aws::String &&value)
GetSessionTokenRequest & WithTokenCode(Aws::String &&value)
GetSessionTokenRequest & WithDurationSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSerialNumber(const Aws::String &value)
JSON (JavaScript Object Notation).