AWS SDK for C++  1.9.106
AWS SDK for C++
AssumeRoleResult.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 AssumeRoleResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
76 
83  inline AssumeRoleResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
84 
85 
94  inline const AssumedRoleUser& GetAssumedRoleUser() const{ return m_assumedRoleUser; }
95 
104  inline void SetAssumedRoleUser(const AssumedRoleUser& value) { m_assumedRoleUser = value; }
105 
114  inline void SetAssumedRoleUser(AssumedRoleUser&& value) { m_assumedRoleUser = std::move(value); }
115 
124  inline AssumeRoleResult& WithAssumedRoleUser(const AssumedRoleUser& value) { SetAssumedRoleUser(value); return *this;}
125 
134  inline AssumeRoleResult& WithAssumedRoleUser(AssumedRoleUser&& value) { SetAssumedRoleUser(std::move(value)); return *this;}
135 
136 
143  inline int GetPackedPolicySize() const{ return m_packedPolicySize; }
144 
151  inline void SetPackedPolicySize(int value) { m_packedPolicySize = value; }
152 
159  inline AssumeRoleResult& WithPackedPolicySize(int value) { SetPackedPolicySize(value); return *this;}
160 
161 
178  inline const Aws::String& GetSourceIdentity() const{ return m_sourceIdentity; }
179 
196  inline void SetSourceIdentity(const Aws::String& value) { m_sourceIdentity = value; }
197 
214  inline void SetSourceIdentity(Aws::String&& value) { m_sourceIdentity = std::move(value); }
215 
232  inline void SetSourceIdentity(const char* value) { m_sourceIdentity.assign(value); }
233 
250  inline AssumeRoleResult& WithSourceIdentity(const Aws::String& value) { SetSourceIdentity(value); return *this;}
251 
268  inline AssumeRoleResult& WithSourceIdentity(Aws::String&& value) { SetSourceIdentity(std::move(value)); return *this;}
269 
286  inline AssumeRoleResult& WithSourceIdentity(const char* value) { SetSourceIdentity(value); return *this;}
287 
288 
289 
290  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
291 
292 
293  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
294 
295 
296  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
297 
298 
299  inline AssumeRoleResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
300 
301 
302  inline AssumeRoleResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
303 
304  private:
305 
306  Credentials m_credentials;
307 
308  AssumedRoleUser m_assumedRoleUser;
309 
310  int m_packedPolicySize;
311 
312  Aws::String m_sourceIdentity;
313 
314  ResponseMetadata m_responseMetadata;
315  };
316 
317 } // namespace Model
318 } // namespace STS
319 } // namespace Aws
Aws::STS::Model::Credentials
Definition: Credentials.h:34
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::STS::Model::AssumeRoleResult::WithCredentials
AssumeRoleResult & WithCredentials(const Credentials &value)
Definition: AssumeRoleResult.h:75
Aws::STS::Model::AssumeRoleResult::operator=
AssumeRoleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::AssumeRoleResult::WithResponseMetadata
AssumeRoleResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: AssumeRoleResult.h:302
AssumedRoleUser.h
Aws::STS::Model::AssumeRoleResult::WithPackedPolicySize
AssumeRoleResult & WithPackedPolicySize(int value)
Definition: AssumeRoleResult.h:159
Aws::STS::Model::AssumeRoleResult::GetCredentials
const Credentials & GetCredentials() const
Definition: AssumeRoleResult.h:51
Credentials.h
Aws::STS::Model::AssumeRoleResult::GetAssumedRoleUser
const AssumedRoleUser & GetAssumedRoleUser() const
Definition: AssumeRoleResult.h:94
Aws::STS::Model::AssumeRoleResult
Definition: AssumeRoleResult.h:38
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::AssumeRoleResult::WithAssumedRoleUser
AssumeRoleResult & WithAssumedRoleUser(const AssumedRoleUser &value)
Definition: AssumeRoleResult.h:124
Aws::STS::Model::AssumeRoleResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: AssumeRoleResult.h:296
Aws::STS::Model::AssumeRoleResult::SetSourceIdentity
void SetSourceIdentity(const char *value)
Definition: AssumeRoleResult.h:232
Aws::STS::Model::AssumeRoleResult::WithSourceIdentity
AssumeRoleResult & WithSourceIdentity(const Aws::String &value)
Definition: AssumeRoleResult.h:250
Aws::STS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::STS::Model::AssumeRoleResult::GetSourceIdentity
const Aws::String & GetSourceIdentity() const
Definition: AssumeRoleResult.h:178
Aws::STS::Model::AssumeRoleResult::SetAssumedRoleUser
void SetAssumedRoleUser(const AssumedRoleUser &value)
Definition: AssumeRoleResult.h:104
Aws::STS::Model::AssumeRoleResult::SetCredentials
void SetCredentials(const Credentials &value)
Definition: AssumeRoleResult.h:59
Aws::STS::Model::AssumeRoleResult::SetCredentials
void SetCredentials(Credentials &&value)
Definition: AssumeRoleResult.h:67
ResponseMetadata.h
Aws::STS::Model::AssumeRoleResult::SetAssumedRoleUser
void SetAssumedRoleUser(AssumedRoleUser &&value)
Definition: AssumeRoleResult.h:114
STS_EXPORTS.h
Aws::STS::Model::AssumeRoleResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: AssumeRoleResult.h:290
Aws::STS::Model::AssumeRoleResult::SetSourceIdentity
void SetSourceIdentity(Aws::String &&value)
Definition: AssumeRoleResult.h:214
AWSString.h
Aws::STS::Model::AssumeRoleResult::AssumeRoleResult
AssumeRoleResult()
Aws::STS::Model::AssumeRoleResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: AssumeRoleResult.h:293
Aws::STS::Model::AssumeRoleResult::SetSourceIdentity
void SetSourceIdentity(const Aws::String &value)
Definition: AssumeRoleResult.h:196
Aws::STS::Model::AssumeRoleResult::WithCredentials
AssumeRoleResult & WithCredentials(Credentials &&value)
Definition: AssumeRoleResult.h:83
Aws::STS::Model::AssumeRoleResult::WithSourceIdentity
AssumeRoleResult & WithSourceIdentity(const char *value)
Definition: AssumeRoleResult.h:286
Aws::STS::Model::AssumeRoleResult::GetPackedPolicySize
int GetPackedPolicySize() const
Definition: AssumeRoleResult.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::AssumeRoleResult::WithSourceIdentity
AssumeRoleResult & WithSourceIdentity(Aws::String &&value)
Definition: AssumeRoleResult.h:268
Aws::STS::Model::AssumeRoleResult::AssumeRoleResult
AssumeRoleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::AssumedRoleUser
Definition: AssumedRoleUser.h:33
Aws::STS::Model::AssumeRoleResult::WithResponseMetadata
AssumeRoleResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: AssumeRoleResult.h:299
Aws::STS::Model::AssumeRoleResult::WithAssumedRoleUser
AssumeRoleResult & WithAssumedRoleUser(AssumedRoleUser &&value)
Definition: AssumeRoleResult.h:134
Aws::STS::Model::AssumeRoleResult::SetPackedPolicySize
void SetPackedPolicySize(int value)
Definition: AssumeRoleResult.h:151