AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
40 AWS_STS_API AssumeRoleWithWebIdentityResult() = default;
43
44
46
52 inline const Credentials& GetCredentials() const { return m_credentials; }
53 template<typename CredentialsT = Credentials>
54 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
55 template<typename CredentialsT = Credentials>
56 AssumeRoleWithWebIdentityResult& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
58
60
69 inline const Aws::String& GetSubjectFromWebIdentityToken() const { return m_subjectFromWebIdentityToken; }
70 template<typename SubjectFromWebIdentityTokenT = Aws::String>
71 void SetSubjectFromWebIdentityToken(SubjectFromWebIdentityTokenT&& value) { m_subjectFromWebIdentityTokenHasBeenSet = true; m_subjectFromWebIdentityToken = std::forward<SubjectFromWebIdentityTokenT>(value); }
72 template<typename SubjectFromWebIdentityTokenT = Aws::String>
73 AssumeRoleWithWebIdentityResult& WithSubjectFromWebIdentityToken(SubjectFromWebIdentityTokenT&& value) { SetSubjectFromWebIdentityToken(std::forward<SubjectFromWebIdentityTokenT>(value)); return *this;}
75
77
85 inline const AssumedRoleUser& GetAssumedRoleUser() const { return m_assumedRoleUser; }
86 template<typename AssumedRoleUserT = AssumedRoleUser>
87 void SetAssumedRoleUser(AssumedRoleUserT&& value) { m_assumedRoleUserHasBeenSet = true; m_assumedRoleUser = std::forward<AssumedRoleUserT>(value); }
88 template<typename AssumedRoleUserT = AssumedRoleUser>
89 AssumeRoleWithWebIdentityResult& WithAssumedRoleUser(AssumedRoleUserT&& value) { SetAssumedRoleUser(std::forward<AssumedRoleUserT>(value)); return *this;}
91
93
99 inline int GetPackedPolicySize() const { return m_packedPolicySize; }
100 inline void SetPackedPolicySize(int value) { m_packedPolicySizeHasBeenSet = true; m_packedPolicySize = value; }
103
105
112 inline const Aws::String& GetProvider() const { return m_provider; }
113 template<typename ProviderT = Aws::String>
114 void SetProvider(ProviderT&& value) { m_providerHasBeenSet = true; m_provider = std::forward<ProviderT>(value); }
115 template<typename ProviderT = Aws::String>
116 AssumeRoleWithWebIdentityResult& WithProvider(ProviderT&& value) { SetProvider(std::forward<ProviderT>(value)); return *this;}
118
120
125 inline const Aws::String& GetAudience() const { return m_audience; }
126 template<typename AudienceT = Aws::String>
127 void SetAudience(AudienceT&& value) { m_audienceHasBeenSet = true; m_audience = std::forward<AudienceT>(value); }
128 template<typename AudienceT = Aws::String>
129 AssumeRoleWithWebIdentityResult& WithAudience(AudienceT&& value) { SetAudience(std::forward<AudienceT>(value)); return *this;}
131
133
156 inline const Aws::String& GetSourceIdentity() const { return m_sourceIdentity; }
157 template<typename SourceIdentityT = Aws::String>
158 void SetSourceIdentity(SourceIdentityT&& value) { m_sourceIdentityHasBeenSet = true; m_sourceIdentity = std::forward<SourceIdentityT>(value); }
159 template<typename SourceIdentityT = Aws::String>
160 AssumeRoleWithWebIdentityResult& WithSourceIdentity(SourceIdentityT&& value) { SetSourceIdentity(std::forward<SourceIdentityT>(value)); return *this;}
162
164
165 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
166 template<typename ResponseMetadataT = ResponseMetadata>
167 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
168 template<typename ResponseMetadataT = ResponseMetadata>
169 AssumeRoleWithWebIdentityResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
171 private:
172
173 Credentials m_credentials;
174 bool m_credentialsHasBeenSet = false;
175
176 Aws::String m_subjectFromWebIdentityToken;
177 bool m_subjectFromWebIdentityTokenHasBeenSet = false;
178
179 AssumedRoleUser m_assumedRoleUser;
180 bool m_assumedRoleUserHasBeenSet = false;
181
182 int m_packedPolicySize{0};
183 bool m_packedPolicySizeHasBeenSet = false;
184
185 Aws::String m_provider;
186 bool m_providerHasBeenSet = false;
187
188 Aws::String m_audience;
189 bool m_audienceHasBeenSet = false;
190
191 Aws::String m_sourceIdentity;
192 bool m_sourceIdentityHasBeenSet = false;
193
194 ResponseMetadata m_responseMetadata;
195 bool m_responseMetadataHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace STS
200} // namespace Aws
AssumeRoleWithWebIdentityResult & WithAssumedRoleUser(AssumedRoleUserT &&value)
AWS_STS_API AssumeRoleWithWebIdentityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_STS_API AssumeRoleWithWebIdentityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AssumeRoleWithWebIdentityResult & WithAudience(AudienceT &&value)
AssumeRoleWithWebIdentityResult & WithSubjectFromWebIdentityToken(SubjectFromWebIdentityTokenT &&value)
void SetSubjectFromWebIdentityToken(SubjectFromWebIdentityTokenT &&value)
AssumeRoleWithWebIdentityResult & WithPackedPolicySize(int value)
AssumeRoleWithWebIdentityResult & WithSourceIdentity(SourceIdentityT &&value)
AssumeRoleWithWebIdentityResult & WithProvider(ProviderT &&value)
AssumeRoleWithWebIdentityResult & WithCredentials(CredentialsT &&value)
AssumeRoleWithWebIdentityResult & WithResponseMetadata(ResponseMetadataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument