AWS SDK for C++  0.14.3
AWS SDK for C++
GetFederationTokenRequest.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 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
67 
77  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 
88  inline GetFederationTokenRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
89 
99  inline GetFederationTokenRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
100 
110  inline GetFederationTokenRequest& WithName(const char* value) { SetName(value); return *this;}
111 
138  inline const Aws::String& GetPolicy() const{ return m_policy; }
139 
166  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
167 
194  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = value; }
195 
222  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
223 
250  inline GetFederationTokenRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
251 
278  inline GetFederationTokenRequest& WithPolicy(Aws::String&& value) { SetPolicy(value); return *this;}
279 
306  inline GetFederationTokenRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
307 
316  inline int GetDurationSeconds() const{ return m_durationSeconds; }
317 
326  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
327 
336  inline GetFederationTokenRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
337 
338  private:
339  Aws::String m_name;
340  bool m_nameHasBeenSet;
341  Aws::String m_policy;
342  bool m_policyHasBeenSet;
343  int m_durationSeconds;
344  bool m_durationSecondsHasBeenSet;
345  };
346 
347 } // namespace Model
348 } // namespace STS
349 } // namespace Aws
#define AWS_STS_API
Definition: STS_EXPORTS.h:37
GetFederationTokenRequest & WithName(Aws::String &&value)
GetFederationTokenRequest & WithPolicy(const char *value)
GetFederationTokenRequest & WithName(const char *value)
GetFederationTokenRequest & WithName(const Aws::String &value)
GetFederationTokenRequest & WithDurationSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetFederationTokenRequest & WithPolicy(Aws::String &&value)
GetFederationTokenRequest & WithPolicy(const Aws::String &value)
JSON (JavaScript Object Notation).