AWS SDK for C++  1.9.106
AWS SDK for C++
AssumeRoleWithSAMLResult.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 AssumeRoleWithSAMLResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
76 
83  inline AssumeRoleWithSAMLResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
84 
85 
90  inline const AssumedRoleUser& GetAssumedRoleUser() const{ return m_assumedRoleUser; }
91 
96  inline void SetAssumedRoleUser(const AssumedRoleUser& value) { m_assumedRoleUser = value; }
97 
102  inline void SetAssumedRoleUser(AssumedRoleUser&& value) { m_assumedRoleUser = std::move(value); }
103 
108  inline AssumeRoleWithSAMLResult& WithAssumedRoleUser(const AssumedRoleUser& value) { SetAssumedRoleUser(value); return *this;}
109 
114  inline AssumeRoleWithSAMLResult& WithAssumedRoleUser(AssumedRoleUser&& value) { SetAssumedRoleUser(std::move(value)); return *this;}
115 
116 
123  inline int GetPackedPolicySize() const{ return m_packedPolicySize; }
124 
131  inline void SetPackedPolicySize(int value) { m_packedPolicySize = value; }
132 
139  inline AssumeRoleWithSAMLResult& WithPackedPolicySize(int value) { SetPackedPolicySize(value); return *this;}
140 
141 
146  inline const Aws::String& GetSubject() const{ return m_subject; }
147 
152  inline void SetSubject(const Aws::String& value) { m_subject = value; }
153 
158  inline void SetSubject(Aws::String&& value) { m_subject = std::move(value); }
159 
164  inline void SetSubject(const char* value) { m_subject.assign(value); }
165 
170  inline AssumeRoleWithSAMLResult& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
171 
176  inline AssumeRoleWithSAMLResult& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
177 
182  inline AssumeRoleWithSAMLResult& WithSubject(const char* value) { SetSubject(value); return *this;}
183 
184 
195  inline const Aws::String& GetSubjectType() const{ return m_subjectType; }
196 
207  inline void SetSubjectType(const Aws::String& value) { m_subjectType = value; }
208 
219  inline void SetSubjectType(Aws::String&& value) { m_subjectType = std::move(value); }
220 
231  inline void SetSubjectType(const char* value) { m_subjectType.assign(value); }
232 
243  inline AssumeRoleWithSAMLResult& WithSubjectType(const Aws::String& value) { SetSubjectType(value); return *this;}
244 
255  inline AssumeRoleWithSAMLResult& WithSubjectType(Aws::String&& value) { SetSubjectType(std::move(value)); return *this;}
256 
267  inline AssumeRoleWithSAMLResult& WithSubjectType(const char* value) { SetSubjectType(value); return *this;}
268 
269 
273  inline const Aws::String& GetIssuer() const{ return m_issuer; }
274 
278  inline void SetIssuer(const Aws::String& value) { m_issuer = value; }
279 
283  inline void SetIssuer(Aws::String&& value) { m_issuer = std::move(value); }
284 
288  inline void SetIssuer(const char* value) { m_issuer.assign(value); }
289 
293  inline AssumeRoleWithSAMLResult& WithIssuer(const Aws::String& value) { SetIssuer(value); return *this;}
294 
298  inline AssumeRoleWithSAMLResult& WithIssuer(Aws::String&& value) { SetIssuer(std::move(value)); return *this;}
299 
303  inline AssumeRoleWithSAMLResult& WithIssuer(const char* value) { SetIssuer(value); return *this;}
304 
305 
310  inline const Aws::String& GetAudience() const{ return m_audience; }
311 
316  inline void SetAudience(const Aws::String& value) { m_audience = value; }
317 
322  inline void SetAudience(Aws::String&& value) { m_audience = std::move(value); }
323 
328  inline void SetAudience(const char* value) { m_audience.assign(value); }
329 
334  inline AssumeRoleWithSAMLResult& WithAudience(const Aws::String& value) { SetAudience(value); return *this;}
335 
340  inline AssumeRoleWithSAMLResult& WithAudience(Aws::String&& value) { SetAudience(std::move(value)); return *this;}
341 
346  inline AssumeRoleWithSAMLResult& WithAudience(const char* value) { SetAudience(value); return *this;}
347 
348 
359  inline const Aws::String& GetNameQualifier() const{ return m_nameQualifier; }
360 
371  inline void SetNameQualifier(const Aws::String& value) { m_nameQualifier = value; }
372 
383  inline void SetNameQualifier(Aws::String&& value) { m_nameQualifier = std::move(value); }
384 
395  inline void SetNameQualifier(const char* value) { m_nameQualifier.assign(value); }
396 
407  inline AssumeRoleWithSAMLResult& WithNameQualifier(const Aws::String& value) { SetNameQualifier(value); return *this;}
408 
419  inline AssumeRoleWithSAMLResult& WithNameQualifier(Aws::String&& value) { SetNameQualifier(std::move(value)); return *this;}
420 
431  inline AssumeRoleWithSAMLResult& WithNameQualifier(const char* value) { SetNameQualifier(value); return *this;}
432 
433 
455  inline const Aws::String& GetSourceIdentity() const{ return m_sourceIdentity; }
456 
478  inline void SetSourceIdentity(const Aws::String& value) { m_sourceIdentity = value; }
479 
501  inline void SetSourceIdentity(Aws::String&& value) { m_sourceIdentity = std::move(value); }
502 
524  inline void SetSourceIdentity(const char* value) { m_sourceIdentity.assign(value); }
525 
547  inline AssumeRoleWithSAMLResult& WithSourceIdentity(const Aws::String& value) { SetSourceIdentity(value); return *this;}
548 
570  inline AssumeRoleWithSAMLResult& WithSourceIdentity(Aws::String&& value) { SetSourceIdentity(std::move(value)); return *this;}
571 
593  inline AssumeRoleWithSAMLResult& WithSourceIdentity(const char* value) { SetSourceIdentity(value); return *this;}
594 
595 
596 
597  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
598 
599 
600  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
601 
602 
603  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
604 
605 
606  inline AssumeRoleWithSAMLResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
607 
608 
609  inline AssumeRoleWithSAMLResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
610 
611  private:
612 
613  Credentials m_credentials;
614 
615  AssumedRoleUser m_assumedRoleUser;
616 
617  int m_packedPolicySize;
618 
619  Aws::String m_subject;
620 
621  Aws::String m_subjectType;
622 
623  Aws::String m_issuer;
624 
625  Aws::String m_audience;
626 
627  Aws::String m_nameQualifier;
628 
629  Aws::String m_sourceIdentity;
630 
631  ResponseMetadata m_responseMetadata;
632  };
633 
634 } // namespace Model
635 } // namespace STS
636 } // namespace Aws
Aws::STS::Model::AssumeRoleWithSAMLResult::SetNameQualifier
void SetNameQualifier(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:371
Aws::STS::Model::Credentials
Definition: Credentials.h:34
Aws::STS::Model::AssumeRoleWithSAMLResult::GetSourceIdentity
const Aws::String & GetSourceIdentity() const
Definition: AssumeRoleWithSAMLResult.h:455
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSourceIdentity
AssumeRoleWithSAMLResult & WithSourceIdentity(const char *value)
Definition: AssumeRoleWithSAMLResult.h:593
Aws::STS::Model::AssumeRoleWithSAMLResult::SetNameQualifier
void SetNameQualifier(const char *value)
Definition: AssumeRoleWithSAMLResult.h:395
Aws::STS::Model::AssumeRoleWithSAMLResult::GetNameQualifier
const Aws::String & GetNameQualifier() const
Definition: AssumeRoleWithSAMLResult.h:359
AssumedRoleUser.h
Aws::STS::Model::AssumeRoleWithSAMLResult::GetAssumedRoleUser
const AssumedRoleUser & GetAssumedRoleUser() const
Definition: AssumeRoleWithSAMLResult.h:90
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSubject
void SetSubject(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:152
Credentials.h
Aws::STS::Model::AssumeRoleWithSAMLResult::SetIssuer
void SetIssuer(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:278
Aws::STS::Model::AssumeRoleWithSAMLResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: AssumeRoleWithSAMLResult.h:600
Aws::STS::Model::AssumeRoleWithSAMLResult::operator=
AssumeRoleWithSAMLResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::AssumeRoleWithSAMLResult::WithCredentials
AssumeRoleWithSAMLResult & WithCredentials(const Credentials &value)
Definition: AssumeRoleWithSAMLResult.h:75
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSubjectType
void SetSubjectType(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:219
Aws::STS::Model::AssumeRoleWithSAMLResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: AssumeRoleWithSAMLResult.h:597
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::AssumeRoleWithSAMLResult::WithNameQualifier
AssumeRoleWithSAMLResult & WithNameQualifier(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:419
Aws::STS::Model::AssumeRoleWithSAMLResult::SetCredentials
void SetCredentials(const Credentials &value)
Definition: AssumeRoleWithSAMLResult.h:59
Aws::STS::Model::AssumeRoleWithSAMLResult::SetPackedPolicySize
void SetPackedPolicySize(int value)
Definition: AssumeRoleWithSAMLResult.h:131
Aws::STS::Model::AssumeRoleWithSAMLResult::WithAudience
AssumeRoleWithSAMLResult & WithAudience(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:340
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSubject
AssumeRoleWithSAMLResult & WithSubject(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:176
Aws::STS::Model::AssumeRoleWithSAMLResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: AssumeRoleWithSAMLResult.h:603
Aws::STS::Model::AssumeRoleWithSAMLResult::WithCredentials
AssumeRoleWithSAMLResult & WithCredentials(Credentials &&value)
Definition: AssumeRoleWithSAMLResult.h:83
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSubject
AssumeRoleWithSAMLResult & WithSubject(const char *value)
Definition: AssumeRoleWithSAMLResult.h:182
Aws::STS::Model::AssumeRoleWithSAMLResult::WithIssuer
AssumeRoleWithSAMLResult & WithIssuer(const char *value)
Definition: AssumeRoleWithSAMLResult.h:303
Aws::STS::Model::AssumeRoleWithSAMLResult::WithNameQualifier
AssumeRoleWithSAMLResult & WithNameQualifier(const char *value)
Definition: AssumeRoleWithSAMLResult.h:431
Aws::STS::Model::AssumeRoleWithSAMLResult::SetIssuer
void SetIssuer(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:283
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSourceIdentity
void SetSourceIdentity(const char *value)
Definition: AssumeRoleWithSAMLResult.h:524
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSourceIdentity
AssumeRoleWithSAMLResult & WithSourceIdentity(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:547
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSubjectType
AssumeRoleWithSAMLResult & WithSubjectType(const char *value)
Definition: AssumeRoleWithSAMLResult.h:267
Aws::STS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::STS::Model::AssumeRoleWithSAMLResult::WithResponseMetadata
AssumeRoleWithSAMLResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: AssumeRoleWithSAMLResult.h:606
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSubject
AssumeRoleWithSAMLResult & WithSubject(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:170
ResponseMetadata.h
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSourceIdentity
AssumeRoleWithSAMLResult & WithSourceIdentity(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:570
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSubject
void SetSubject(const char *value)
Definition: AssumeRoleWithSAMLResult.h:164
Aws::STS::Model::AssumeRoleWithSAMLResult::WithNameQualifier
AssumeRoleWithSAMLResult & WithNameQualifier(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:407
Aws::STS::Model::AssumeRoleWithSAMLResult::GetPackedPolicySize
int GetPackedPolicySize() const
Definition: AssumeRoleWithSAMLResult.h:123
STS_EXPORTS.h
Aws::STS::Model::AssumeRoleWithSAMLResult::AssumeRoleWithSAMLResult
AssumeRoleWithSAMLResult()
Aws::STS::Model::AssumeRoleWithSAMLResult::WithAudience
AssumeRoleWithSAMLResult & WithAudience(const char *value)
Definition: AssumeRoleWithSAMLResult.h:346
Aws::STS::Model::AssumeRoleWithSAMLResult::SetCredentials
void SetCredentials(Credentials &&value)
Definition: AssumeRoleWithSAMLResult.h:67
Aws::STS::Model::AssumeRoleWithSAMLResult::GetAudience
const Aws::String & GetAudience() const
Definition: AssumeRoleWithSAMLResult.h:310
Aws::STS::Model::AssumeRoleWithSAMLResult::WithAssumedRoleUser
AssumeRoleWithSAMLResult & WithAssumedRoleUser(AssumedRoleUser &&value)
Definition: AssumeRoleWithSAMLResult.h:114
Aws::STS::Model::AssumeRoleWithSAMLResult::SetIssuer
void SetIssuer(const char *value)
Definition: AssumeRoleWithSAMLResult.h:288
AWSString.h
Aws::STS::Model::AssumeRoleWithSAMLResult::WithPackedPolicySize
AssumeRoleWithSAMLResult & WithPackedPolicySize(int value)
Definition: AssumeRoleWithSAMLResult.h:139
Aws::STS::Model::AssumeRoleWithSAMLResult::AssumeRoleWithSAMLResult
AssumeRoleWithSAMLResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSubjectType
AssumeRoleWithSAMLResult & WithSubjectType(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:243
Aws::STS::Model::AssumeRoleWithSAMLResult::SetAssumedRoleUser
void SetAssumedRoleUser(const AssumedRoleUser &value)
Definition: AssumeRoleWithSAMLResult.h:96
Aws::STS::Model::AssumeRoleWithSAMLResult::WithAssumedRoleUser
AssumeRoleWithSAMLResult & WithAssumedRoleUser(const AssumedRoleUser &value)
Definition: AssumeRoleWithSAMLResult.h:108
Aws::STS::Model::AssumeRoleWithSAMLResult::GetIssuer
const Aws::String & GetIssuer() const
Definition: AssumeRoleWithSAMLResult.h:273
Aws::STS::Model::AssumeRoleWithSAMLResult::WithSubjectType
AssumeRoleWithSAMLResult & WithSubjectType(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:255
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSourceIdentity
void SetSourceIdentity(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:478
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::AssumeRoleWithSAMLResult::SetNameQualifier
void SetNameQualifier(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:383
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::AssumeRoleWithSAMLResult::WithIssuer
AssumeRoleWithSAMLResult & WithIssuer(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:298
Aws::STS::Model::AssumeRoleWithSAMLResult::GetSubjectType
const Aws::String & GetSubjectType() const
Definition: AssumeRoleWithSAMLResult.h:195
Aws::STS::Model::AssumeRoleWithSAMLResult::SetAssumedRoleUser
void SetAssumedRoleUser(AssumedRoleUser &&value)
Definition: AssumeRoleWithSAMLResult.h:102
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSubject
void SetSubject(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:158
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSubjectType
void SetSubjectType(const char *value)
Definition: AssumeRoleWithSAMLResult.h:231
Aws::STS::Model::AssumeRoleWithSAMLResult::WithAudience
AssumeRoleWithSAMLResult & WithAudience(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:334
Aws::STS::Model::AssumedRoleUser
Definition: AssumedRoleUser.h:33
Aws::STS::Model::AssumeRoleWithSAMLResult::WithResponseMetadata
AssumeRoleWithSAMLResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: AssumeRoleWithSAMLResult.h:609
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSubjectType
void SetSubjectType(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:207
Aws::STS::Model::AssumeRoleWithSAMLResult::SetAudience
void SetAudience(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:316
Aws::STS::Model::AssumeRoleWithSAMLResult::SetAudience
void SetAudience(const char *value)
Definition: AssumeRoleWithSAMLResult.h:328
Aws::STS::Model::AssumeRoleWithSAMLResult::GetSubject
const Aws::String & GetSubject() const
Definition: AssumeRoleWithSAMLResult.h:146
Aws::STS::Model::AssumeRoleWithSAMLResult
Definition: AssumeRoleWithSAMLResult.h:38
Aws::STS::Model::AssumeRoleWithSAMLResult::WithIssuer
AssumeRoleWithSAMLResult & WithIssuer(const Aws::String &value)
Definition: AssumeRoleWithSAMLResult.h:293
Aws::STS::Model::AssumeRoleWithSAMLResult::GetCredentials
const Credentials & GetCredentials() const
Definition: AssumeRoleWithSAMLResult.h:51
Aws::STS::Model::AssumeRoleWithSAMLResult::SetSourceIdentity
void SetSourceIdentity(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:501
Aws::STS::Model::AssumeRoleWithSAMLResult::SetAudience
void SetAudience(Aws::String &&value)
Definition: AssumeRoleWithSAMLResult.h:322