AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssumeRoleWithWebIdentityResult.h
1
6#pragma once
7#include <aws/sts/STS_EXPORTS.h>
8#include <aws/sts/model/Credentials.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sts/model/AssumedRoleUser.h>
11#include <aws/sts/model/ResponseMetadata.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace STS
27{
28namespace Model
29{
38 {
39 public:
43
44
46
52 inline const Credentials& GetCredentials() const{ return m_credentials; }
53 inline void SetCredentials(const Credentials& value) { m_credentials = value; }
54 inline void SetCredentials(Credentials&& value) { m_credentials = std::move(value); }
55 inline AssumeRoleWithWebIdentityResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
56 inline AssumeRoleWithWebIdentityResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
58
60
69 inline const Aws::String& GetSubjectFromWebIdentityToken() const{ return m_subjectFromWebIdentityToken; }
70 inline void SetSubjectFromWebIdentityToken(const Aws::String& value) { m_subjectFromWebIdentityToken = value; }
71 inline void SetSubjectFromWebIdentityToken(Aws::String&& value) { m_subjectFromWebIdentityToken = std::move(value); }
72 inline void SetSubjectFromWebIdentityToken(const char* value) { m_subjectFromWebIdentityToken.assign(value); }
77
79
87 inline const AssumedRoleUser& GetAssumedRoleUser() const{ return m_assumedRoleUser; }
88 inline void SetAssumedRoleUser(const AssumedRoleUser& value) { m_assumedRoleUser = value; }
89 inline void SetAssumedRoleUser(AssumedRoleUser&& value) { m_assumedRoleUser = std::move(value); }
93
95
101 inline int GetPackedPolicySize() const{ return m_packedPolicySize; }
102 inline void SetPackedPolicySize(int value) { m_packedPolicySize = value; }
105
107
114 inline const Aws::String& GetProvider() const{ return m_provider; }
115 inline void SetProvider(const Aws::String& value) { m_provider = value; }
116 inline void SetProvider(Aws::String&& value) { m_provider = std::move(value); }
117 inline void SetProvider(const char* value) { m_provider.assign(value); }
118 inline AssumeRoleWithWebIdentityResult& WithProvider(const Aws::String& value) { SetProvider(value); return *this;}
119 inline AssumeRoleWithWebIdentityResult& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;}
120 inline AssumeRoleWithWebIdentityResult& WithProvider(const char* value) { SetProvider(value); return *this;}
122
124
129 inline const Aws::String& GetAudience() const{ return m_audience; }
130 inline void SetAudience(const Aws::String& value) { m_audience = value; }
131 inline void SetAudience(Aws::String&& value) { m_audience = std::move(value); }
132 inline void SetAudience(const char* value) { m_audience.assign(value); }
133 inline AssumeRoleWithWebIdentityResult& WithAudience(const Aws::String& value) { SetAudience(value); return *this;}
134 inline AssumeRoleWithWebIdentityResult& WithAudience(Aws::String&& value) { SetAudience(std::move(value)); return *this;}
135 inline AssumeRoleWithWebIdentityResult& WithAudience(const char* value) { SetAudience(value); return *this;}
137
139
162 inline const Aws::String& GetSourceIdentity() const{ return m_sourceIdentity; }
163 inline void SetSourceIdentity(const Aws::String& value) { m_sourceIdentity = value; }
164 inline void SetSourceIdentity(Aws::String&& value) { m_sourceIdentity = std::move(value); }
165 inline void SetSourceIdentity(const char* value) { m_sourceIdentity.assign(value); }
167 inline AssumeRoleWithWebIdentityResult& WithSourceIdentity(Aws::String&& value) { SetSourceIdentity(std::move(value)); return *this;}
168 inline AssumeRoleWithWebIdentityResult& WithSourceIdentity(const char* value) { SetSourceIdentity(value); return *this;}
170
172
173 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
174 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
175 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
179 private:
180
181 Credentials m_credentials;
182
183 Aws::String m_subjectFromWebIdentityToken;
184
185 AssumedRoleUser m_assumedRoleUser;
186
187 int m_packedPolicySize;
188
189 Aws::String m_provider;
190
191 Aws::String m_audience;
192
193 Aws::String m_sourceIdentity;
194
195 ResponseMetadata m_responseMetadata;
196 };
197
198} // namespace Model
199} // namespace STS
200} // namespace Aws
AssumeRoleWithWebIdentityResult & WithAudience(const Aws::String &value)
AWS_STS_API AssumeRoleWithWebIdentityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AssumeRoleWithWebIdentityResult & WithAssumedRoleUser(const AssumedRoleUser &value)
AWS_STS_API AssumeRoleWithWebIdentityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AssumeRoleWithWebIdentityResult & WithProvider(const Aws::String &value)
AssumeRoleWithWebIdentityResult & WithAudience(const char *value)
AssumeRoleWithWebIdentityResult & WithPackedPolicySize(int value)
AssumeRoleWithWebIdentityResult & WithAssumedRoleUser(AssumedRoleUser &&value)
AssumeRoleWithWebIdentityResult & WithResponseMetadata(const ResponseMetadata &value)
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(const char *value)
AssumeRoleWithWebIdentityResult & WithProvider(const char *value)
AssumeRoleWithWebIdentityResult & WithProvider(Aws::String &&value)
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(Aws::String &&value)
AssumeRoleWithWebIdentityResult & WithCredentials(Credentials &&value)
AssumeRoleWithWebIdentityResult & WithAudience(Aws::String &&value)
AssumeRoleWithWebIdentityResult & WithCredentials(const Credentials &value)
AssumeRoleWithWebIdentityResult & WithResponseMetadata(ResponseMetadata &&value)
AssumeRoleWithWebIdentityResult & WithSourceIdentity(const char *value)
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(const Aws::String &value)
AssumeRoleWithWebIdentityResult & WithSourceIdentity(Aws::String &&value)
AssumeRoleWithWebIdentityResult & WithSourceIdentity(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument