AWS SDK for C++  1.9.106
AWS SDK for C++
AssumeRoleWithWebIdentityResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sts/STS_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace STS
27 {
28 namespace Model
29 {
38  {
39  public:
43 
44 
51  inline const Credentials& GetCredentials() const{ return m_credentials; }
52 
59  inline void SetCredentials(const Credentials& value) { m_credentials = value; }
60 
67  inline void SetCredentials(Credentials&& value) { m_credentials = std::move(value); }
68 
75  inline AssumeRoleWithWebIdentityResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
76 
83  inline AssumeRoleWithWebIdentityResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
84 
85 
95  inline const Aws::String& GetSubjectFromWebIdentityToken() const{ return m_subjectFromWebIdentityToken; }
96 
106  inline void SetSubjectFromWebIdentityToken(const Aws::String& value) { m_subjectFromWebIdentityToken = value; }
107 
117  inline void SetSubjectFromWebIdentityToken(Aws::String&& value) { m_subjectFromWebIdentityToken = std::move(value); }
118 
128  inline void SetSubjectFromWebIdentityToken(const char* value) { m_subjectFromWebIdentityToken.assign(value); }
129 
139  inline AssumeRoleWithWebIdentityResult& WithSubjectFromWebIdentityToken(const Aws::String& value) { SetSubjectFromWebIdentityToken(value); return *this;}
140 
150  inline AssumeRoleWithWebIdentityResult& WithSubjectFromWebIdentityToken(Aws::String&& value) { SetSubjectFromWebIdentityToken(std::move(value)); return *this;}
151 
161  inline AssumeRoleWithWebIdentityResult& WithSubjectFromWebIdentityToken(const char* value) { SetSubjectFromWebIdentityToken(value); return *this;}
162 
163 
172  inline const AssumedRoleUser& GetAssumedRoleUser() const{ return m_assumedRoleUser; }
173 
182  inline void SetAssumedRoleUser(const AssumedRoleUser& value) { m_assumedRoleUser = value; }
183 
192  inline void SetAssumedRoleUser(AssumedRoleUser&& value) { m_assumedRoleUser = std::move(value); }
193 
202  inline AssumeRoleWithWebIdentityResult& WithAssumedRoleUser(const AssumedRoleUser& value) { SetAssumedRoleUser(value); return *this;}
203 
212  inline AssumeRoleWithWebIdentityResult& WithAssumedRoleUser(AssumedRoleUser&& value) { SetAssumedRoleUser(std::move(value)); return *this;}
213 
214 
221  inline int GetPackedPolicySize() const{ return m_packedPolicySize; }
222 
229  inline void SetPackedPolicySize(int value) { m_packedPolicySize = value; }
230 
237  inline AssumeRoleWithWebIdentityResult& WithPackedPolicySize(int value) { SetPackedPolicySize(value); return *this;}
238 
239 
247  inline const Aws::String& GetProvider() const{ return m_provider; }
248 
256  inline void SetProvider(const Aws::String& value) { m_provider = value; }
257 
265  inline void SetProvider(Aws::String&& value) { m_provider = std::move(value); }
266 
274  inline void SetProvider(const char* value) { m_provider.assign(value); }
275 
283  inline AssumeRoleWithWebIdentityResult& WithProvider(const Aws::String& value) { SetProvider(value); return *this;}
284 
292  inline AssumeRoleWithWebIdentityResult& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;}
293 
301  inline AssumeRoleWithWebIdentityResult& WithProvider(const char* value) { SetProvider(value); return *this;}
302 
303 
309  inline const Aws::String& GetAudience() const{ return m_audience; }
310 
316  inline void SetAudience(const Aws::String& value) { m_audience = value; }
317 
323  inline void SetAudience(Aws::String&& value) { m_audience = std::move(value); }
324 
330  inline void SetAudience(const char* value) { m_audience.assign(value); }
331 
337  inline AssumeRoleWithWebIdentityResult& WithAudience(const Aws::String& value) { SetAudience(value); return *this;}
338 
344  inline AssumeRoleWithWebIdentityResult& WithAudience(Aws::String&& value) { SetAudience(std::move(value)); return *this;}
345 
351  inline AssumeRoleWithWebIdentityResult& WithAudience(const char* value) { SetAudience(value); return *this;}
352 
353 
377  inline const Aws::String& GetSourceIdentity() const{ return m_sourceIdentity; }
378 
402  inline void SetSourceIdentity(const Aws::String& value) { m_sourceIdentity = value; }
403 
427  inline void SetSourceIdentity(Aws::String&& value) { m_sourceIdentity = std::move(value); }
428 
452  inline void SetSourceIdentity(const char* value) { m_sourceIdentity.assign(value); }
453 
477  inline AssumeRoleWithWebIdentityResult& WithSourceIdentity(const Aws::String& value) { SetSourceIdentity(value); return *this;}
478 
502  inline AssumeRoleWithWebIdentityResult& WithSourceIdentity(Aws::String&& value) { SetSourceIdentity(std::move(value)); return *this;}
503 
527  inline AssumeRoleWithWebIdentityResult& WithSourceIdentity(const char* value) { SetSourceIdentity(value); return *this;}
528 
529 
530 
531  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
532 
533 
534  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
535 
536 
537  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
538 
539 
540  inline AssumeRoleWithWebIdentityResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
541 
542 
543  inline AssumeRoleWithWebIdentityResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
544 
545  private:
546 
547  Credentials m_credentials;
548 
549  Aws::String m_subjectFromWebIdentityToken;
550 
551  AssumedRoleUser m_assumedRoleUser;
552 
553  int m_packedPolicySize;
554 
555  Aws::String m_provider;
556 
557  Aws::String m_audience;
558 
559  Aws::String m_sourceIdentity;
560 
561  ResponseMetadata m_responseMetadata;
562  };
563 
564 } // namespace Model
565 } // namespace STS
566 } // namespace Aws
Aws::STS::Model::Credentials
Definition: Credentials.h:34
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: AssumeRoleWithWebIdentityResult.h:537
Aws::STS::Model::AssumeRoleWithWebIdentityResult::GetSubjectFromWebIdentityToken
const Aws::String & GetSubjectFromWebIdentityToken() const
Definition: AssumeRoleWithWebIdentityResult.h:95
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetCredentials
void SetCredentials(Credentials &&value)
Definition: AssumeRoleWithWebIdentityResult.h:67
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetPackedPolicySize
void SetPackedPolicySize(int value)
Definition: AssumeRoleWithWebIdentityResult.h:229
AssumedRoleUser.h
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetProvider
void SetProvider(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityResult.h:256
Aws::STS::Model::AssumeRoleWithWebIdentityResult
Definition: AssumeRoleWithWebIdentityResult.h:38
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithCredentials
AssumeRoleWithWebIdentityResult & WithCredentials(Credentials &&value)
Definition: AssumeRoleWithWebIdentityResult.h:83
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithSourceIdentity
AssumeRoleWithWebIdentityResult & WithSourceIdentity(const char *value)
Definition: AssumeRoleWithWebIdentityResult.h:527
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithSubjectFromWebIdentityToken
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityResult.h:150
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetCredentials
void SetCredentials(const Credentials &value)
Definition: AssumeRoleWithWebIdentityResult.h:59
Credentials.h
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithCredentials
AssumeRoleWithWebIdentityResult & WithCredentials(const Credentials &value)
Definition: AssumeRoleWithWebIdentityResult.h:75
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::AssumeRoleWithWebIdentityResult::GetPackedPolicySize
int GetPackedPolicySize() const
Definition: AssumeRoleWithWebIdentityResult.h:221
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetProvider
void SetProvider(const char *value)
Definition: AssumeRoleWithWebIdentityResult.h:274
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithSubjectFromWebIdentityToken
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityResult.h:139
Aws::STS::Model::AssumeRoleWithWebIdentityResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: AssumeRoleWithWebIdentityResult.h:531
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetSubjectFromWebIdentityToken
void SetSubjectFromWebIdentityToken(const char *value)
Definition: AssumeRoleWithWebIdentityResult.h:128
Aws::STS::Model::AssumeRoleWithWebIdentityResult::GetCredentials
const Credentials & GetCredentials() const
Definition: AssumeRoleWithWebIdentityResult.h:51
Aws::STS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithAudience
AssumeRoleWithWebIdentityResult & WithAudience(const char *value)
Definition: AssumeRoleWithWebIdentityResult.h:351
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithSourceIdentity
AssumeRoleWithWebIdentityResult & WithSourceIdentity(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityResult.h:502
Aws::STS::Model::AssumeRoleWithWebIdentityResult::operator=
AssumeRoleWithWebIdentityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetSourceIdentity
void SetSourceIdentity(const char *value)
Definition: AssumeRoleWithWebIdentityResult.h:452
Aws::STS::Model::AssumeRoleWithWebIdentityResult::AssumeRoleWithWebIdentityResult
AssumeRoleWithWebIdentityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ResponseMetadata.h
STS_EXPORTS.h
Aws::STS::Model::AssumeRoleWithWebIdentityResult::GetSourceIdentity
const Aws::String & GetSourceIdentity() const
Definition: AssumeRoleWithWebIdentityResult.h:377
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetAssumedRoleUser
void SetAssumedRoleUser(const AssumedRoleUser &value)
Definition: AssumeRoleWithWebIdentityResult.h:182
Aws::STS::Model::AssumeRoleWithWebIdentityResult::GetAssumedRoleUser
const AssumedRoleUser & GetAssumedRoleUser() const
Definition: AssumeRoleWithWebIdentityResult.h:172
Aws::STS::Model::AssumeRoleWithWebIdentityResult::GetAudience
const Aws::String & GetAudience() const
Definition: AssumeRoleWithWebIdentityResult.h:309
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithPackedPolicySize
AssumeRoleWithWebIdentityResult & WithPackedPolicySize(int value)
Definition: AssumeRoleWithWebIdentityResult.h:237
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithSubjectFromWebIdentityToken
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(const char *value)
Definition: AssumeRoleWithWebIdentityResult.h:161
AWSString.h
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithAssumedRoleUser
AssumeRoleWithWebIdentityResult & WithAssumedRoleUser(const AssumedRoleUser &value)
Definition: AssumeRoleWithWebIdentityResult.h:202
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetSourceIdentity
void SetSourceIdentity(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityResult.h:427
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetSubjectFromWebIdentityToken
void SetSubjectFromWebIdentityToken(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityResult.h:106
Aws::STS::Model::AssumeRoleWithWebIdentityResult::AssumeRoleWithWebIdentityResult
AssumeRoleWithWebIdentityResult()
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithProvider
AssumeRoleWithWebIdentityResult & WithProvider(const char *value)
Definition: AssumeRoleWithWebIdentityResult.h:301
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetAssumedRoleUser
void SetAssumedRoleUser(AssumedRoleUser &&value)
Definition: AssumeRoleWithWebIdentityResult.h:192
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetAudience
void SetAudience(const char *value)
Definition: AssumeRoleWithWebIdentityResult.h:330
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithAudience
AssumeRoleWithWebIdentityResult & WithAudience(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityResult.h:337
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithAssumedRoleUser
AssumeRoleWithWebIdentityResult & WithAssumedRoleUser(AssumedRoleUser &&value)
Definition: AssumeRoleWithWebIdentityResult.h:212
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithAudience
AssumeRoleWithWebIdentityResult & WithAudience(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityResult.h:344
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetSourceIdentity
void SetSourceIdentity(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityResult.h:402
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetAudience
void SetAudience(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityResult.h:323
Aws::STS::Model::AssumeRoleWithWebIdentityResult::GetProvider
const Aws::String & GetProvider() const
Definition: AssumeRoleWithWebIdentityResult.h:247
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithResponseMetadata
AssumeRoleWithWebIdentityResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: AssumeRoleWithWebIdentityResult.h:540
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithProvider
AssumeRoleWithWebIdentityResult & WithProvider(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityResult.h:292
Aws::STS::Model::AssumedRoleUser
Definition: AssumedRoleUser.h:33
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithProvider
AssumeRoleWithWebIdentityResult & WithProvider(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityResult.h:283
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetAudience
void SetAudience(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityResult.h:316
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetSubjectFromWebIdentityToken
void SetSubjectFromWebIdentityToken(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityResult.h:117
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: AssumeRoleWithWebIdentityResult.h:534
Aws::STS::Model::AssumeRoleWithWebIdentityResult::SetProvider
void SetProvider(Aws::String &&value)
Definition: AssumeRoleWithWebIdentityResult.h:265
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithSourceIdentity
AssumeRoleWithWebIdentityResult & WithSourceIdentity(const Aws::String &value)
Definition: AssumeRoleWithWebIdentityResult.h:477
Aws::STS::Model::AssumeRoleWithWebIdentityResult::WithResponseMetadata
AssumeRoleWithWebIdentityResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: AssumeRoleWithWebIdentityResult.h:543