AWS SDK for C++  0.12.9
AWS SDK for C++
AssumeRoleWithWebIdentityResult.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>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace STS
35 {
36 namespace Model
37 {
44  {
45  public:
49 
58  inline const Credentials& GetCredentials() const{ return m_credentials; }
59 
68  inline void SetCredentials(const Credentials& value) { m_credentials = value; }
69 
78  inline void SetCredentials(Credentials&& value) { m_credentials = value; }
79 
88  inline AssumeRoleWithWebIdentityResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
89 
98  inline AssumeRoleWithWebIdentityResult& WithCredentials(Credentials&& value) { SetCredentials(value); return *this;}
99 
109  inline const Aws::String& GetSubjectFromWebIdentityToken() const{ return m_subjectFromWebIdentityToken; }
110 
120  inline void SetSubjectFromWebIdentityToken(const Aws::String& value) { m_subjectFromWebIdentityToken = value; }
121 
131  inline void SetSubjectFromWebIdentityToken(Aws::String&& value) { m_subjectFromWebIdentityToken = value; }
132 
142  inline void SetSubjectFromWebIdentityToken(const char* value) { m_subjectFromWebIdentityToken.assign(value); }
143 
153  inline AssumeRoleWithWebIdentityResult& WithSubjectFromWebIdentityToken(const Aws::String& value) { SetSubjectFromWebIdentityToken(value); return *this;}
154 
164  inline AssumeRoleWithWebIdentityResult& WithSubjectFromWebIdentityToken(Aws::String&& value) { SetSubjectFromWebIdentityToken(value); return *this;}
165 
175  inline AssumeRoleWithWebIdentityResult& WithSubjectFromWebIdentityToken(const char* value) { SetSubjectFromWebIdentityToken(value); return *this;}
176 
185  inline const AssumedRoleUser& GetAssumedRoleUser() const{ return m_assumedRoleUser; }
186 
195  inline void SetAssumedRoleUser(const AssumedRoleUser& value) { m_assumedRoleUser = value; }
196 
205  inline void SetAssumedRoleUser(AssumedRoleUser&& value) { m_assumedRoleUser = value; }
206 
215  inline AssumeRoleWithWebIdentityResult& WithAssumedRoleUser(const AssumedRoleUser& value) { SetAssumedRoleUser(value); return *this;}
216 
225  inline AssumeRoleWithWebIdentityResult& WithAssumedRoleUser(AssumedRoleUser&& value) { SetAssumedRoleUser(value); return *this;}
226 
232  inline long GetPackedPolicySize() const{ return m_packedPolicySize; }
233 
239  inline void SetPackedPolicySize(long value) { m_packedPolicySize = value; }
240 
246  inline AssumeRoleWithWebIdentityResult& WithPackedPolicySize(long value) { SetPackedPolicySize(value); return *this;}
247 
255  inline const Aws::String& GetProvider() const{ return m_provider; }
256 
264  inline void SetProvider(const Aws::String& value) { m_provider = value; }
265 
273  inline void SetProvider(Aws::String&& value) { m_provider = value; }
274 
282  inline void SetProvider(const char* value) { m_provider.assign(value); }
283 
291  inline AssumeRoleWithWebIdentityResult& WithProvider(const Aws::String& value) { SetProvider(value); return *this;}
292 
300  inline AssumeRoleWithWebIdentityResult& WithProvider(Aws::String&& value) { SetProvider(value); return *this;}
301 
309  inline AssumeRoleWithWebIdentityResult& WithProvider(const char* value) { SetProvider(value); return *this;}
310 
316  inline const Aws::String& GetAudience() const{ return m_audience; }
317 
323  inline void SetAudience(const Aws::String& value) { m_audience = value; }
324 
330  inline void SetAudience(Aws::String&& value) { m_audience = value; }
331 
337  inline void SetAudience(const char* value) { m_audience.assign(value); }
338 
344  inline AssumeRoleWithWebIdentityResult& WithAudience(const Aws::String& value) { SetAudience(value); return *this;}
345 
351  inline AssumeRoleWithWebIdentityResult& WithAudience(Aws::String&& value) { SetAudience(value); return *this;}
352 
358  inline AssumeRoleWithWebIdentityResult& WithAudience(const char* value) { SetAudience(value); return *this;}
359 
360 
361  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
362 
363 
364  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
365 
366 
367  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
368 
369 
370  inline AssumeRoleWithWebIdentityResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
371 
372 
373  inline AssumeRoleWithWebIdentityResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
374 
375  private:
376  Credentials m_credentials;
377  Aws::String m_subjectFromWebIdentityToken;
378  AssumedRoleUser m_assumedRoleUser;
379  long m_packedPolicySize;
380  Aws::String m_provider;
381  Aws::String m_audience;
382  ResponseMetadata m_responseMetadata;
383  };
384 
385 } // namespace Model
386 } // namespace STS
387 } // namespace Aws
#define AWS_STS_API
Definition: STS_EXPORTS.h:34
AssumeRoleWithWebIdentityResult & WithProvider(const char *value)
AssumeRoleWithWebIdentityResult & WithResponseMetadata(const ResponseMetadata &value)
AssumeRoleWithWebIdentityResult & WithAudience(Aws::String &&value)
AssumeRoleWithWebIdentityResult & WithCredentials(const Credentials &value)
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(const Aws::String &value)
AssumeRoleWithWebIdentityResult & WithAudience(const Aws::String &value)
AssumeRoleWithWebIdentityResult & WithPackedPolicySize(long value)
AssumeRoleWithWebIdentityResult & WithResponseMetadata(ResponseMetadata &&value)
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AssumeRoleWithWebIdentityResult & WithAudience(const char *value)
AssumeRoleWithWebIdentityResult & WithProvider(Aws::String &&value)
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(const char *value)
AssumeRoleWithWebIdentityResult & WithAssumedRoleUser(const AssumedRoleUser &value)
AssumeRoleWithWebIdentityResult & WithAssumedRoleUser(AssumedRoleUser &&value)
AssumeRoleWithWebIdentityResult & WithProvider(const Aws::String &value)
AssumeRoleWithWebIdentityResult & WithCredentials(Credentials &&value)
JSON (JavaScript Object Notation).