AWS SDK for C++  0.12.9
AWS SDK for C++
GetFederationTokenResult.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>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlDocument;
31 } // namespace Xml
32 } // namespace Utils
33 namespace STS
34 {
35 namespace Model
36 {
42  {
43  public:
47 
56  inline const Credentials& GetCredentials() const{ return m_credentials; }
57 
66  inline void SetCredentials(const Credentials& value) { m_credentials = value; }
67 
76  inline void SetCredentials(Credentials&& value) { m_credentials = value; }
77 
86  inline GetFederationTokenResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
87 
96  inline GetFederationTokenResult& WithCredentials(Credentials&& value) { SetCredentials(value); return *this;}
97 
104  inline const FederatedUser& GetFederatedUser() const{ return m_federatedUser; }
105 
112  inline void SetFederatedUser(const FederatedUser& value) { m_federatedUser = value; }
113 
120  inline void SetFederatedUser(FederatedUser&& value) { m_federatedUser = value; }
121 
128  inline GetFederationTokenResult& WithFederatedUser(const FederatedUser& value) { SetFederatedUser(value); return *this;}
129 
136  inline GetFederationTokenResult& WithFederatedUser(FederatedUser&& value) { SetFederatedUser(value); return *this;}
137 
143  inline long GetPackedPolicySize() const{ return m_packedPolicySize; }
144 
150  inline void SetPackedPolicySize(long value) { m_packedPolicySize = value; }
151 
157  inline GetFederationTokenResult& WithPackedPolicySize(long value) { SetPackedPolicySize(value); return *this;}
158 
159 
160  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
161 
162 
163  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
164 
165 
166  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
167 
168 
169  inline GetFederationTokenResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
170 
171 
172  inline GetFederationTokenResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
173 
174  private:
175  Credentials m_credentials;
176  FederatedUser m_federatedUser;
177  long m_packedPolicySize;
178  ResponseMetadata m_responseMetadata;
179  };
180 
181 } // namespace Model
182 } // namespace STS
183 } // namespace Aws
#define AWS_STS_API
Definition: STS_EXPORTS.h:34
GetFederationTokenResult & WithPackedPolicySize(long value)
void SetFederatedUser(const FederatedUser &value)
GetFederationTokenResult & WithResponseMetadata(ResponseMetadata &&value)
GetFederationTokenResult & WithFederatedUser(FederatedUser &&value)
GetFederationTokenResult & WithCredentials(const Credentials &value)
void SetResponseMetadata(ResponseMetadata &&value)
const ResponseMetadata & GetResponseMetadata() const
GetFederationTokenResult & WithFederatedUser(const FederatedUser &value)
void SetResponseMetadata(const ResponseMetadata &value)
GetFederationTokenResult & WithResponseMetadata(const ResponseMetadata &value)
GetFederationTokenResult & WithCredentials(Credentials &&value)
JSON (JavaScript Object Notation).