AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssumeRoleResult.h
1
6#pragma once
7#include <aws/sts/STS_EXPORTS.h>
8#include <aws/sts/model/Credentials.h>
9#include <aws/sts/model/AssumedRoleUser.h>
10#include <aws/core/utils/memory/stl/AWSString.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 AssumeRoleResult();
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 AssumeRoleResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
56 inline AssumeRoleResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
58
60
68 inline const AssumedRoleUser& GetAssumedRoleUser() const{ return m_assumedRoleUser; }
69 inline void SetAssumedRoleUser(const AssumedRoleUser& value) { m_assumedRoleUser = value; }
70 inline void SetAssumedRoleUser(AssumedRoleUser&& value) { m_assumedRoleUser = std::move(value); }
71 inline AssumeRoleResult& WithAssumedRoleUser(const AssumedRoleUser& value) { SetAssumedRoleUser(value); return *this;}
72 inline AssumeRoleResult& WithAssumedRoleUser(AssumedRoleUser&& value) { SetAssumedRoleUser(std::move(value)); return *this;}
74
76
82 inline int GetPackedPolicySize() const{ return m_packedPolicySize; }
83 inline void SetPackedPolicySize(int value) { m_packedPolicySize = value; }
84 inline AssumeRoleResult& WithPackedPolicySize(int value) { SetPackedPolicySize(value); return *this;}
86
88
104 inline const Aws::String& GetSourceIdentity() const{ return m_sourceIdentity; }
105 inline void SetSourceIdentity(const Aws::String& value) { m_sourceIdentity = value; }
106 inline void SetSourceIdentity(Aws::String&& value) { m_sourceIdentity = std::move(value); }
107 inline void SetSourceIdentity(const char* value) { m_sourceIdentity.assign(value); }
108 inline AssumeRoleResult& WithSourceIdentity(const Aws::String& value) { SetSourceIdentity(value); return *this;}
109 inline AssumeRoleResult& WithSourceIdentity(Aws::String&& value) { SetSourceIdentity(std::move(value)); return *this;}
110 inline AssumeRoleResult& WithSourceIdentity(const char* value) { SetSourceIdentity(value); return *this;}
112
114
115 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
116 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
117 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
118 inline AssumeRoleResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
119 inline AssumeRoleResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
121 private:
122
123 Credentials m_credentials;
124
125 AssumedRoleUser m_assumedRoleUser;
126
127 int m_packedPolicySize;
128
129 Aws::String m_sourceIdentity;
130
131 ResponseMetadata m_responseMetadata;
132 };
133
134} // namespace Model
135} // namespace STS
136} // namespace Aws
AssumeRoleResult & WithAssumedRoleUser(const AssumedRoleUser &value)
const Aws::String & GetSourceIdentity() const
void SetSourceIdentity(const Aws::String &value)
AssumeRoleResult & WithResponseMetadata(ResponseMetadata &&value)
void SetCredentials(const Credentials &value)
void SetAssumedRoleUser(AssumedRoleUser &&value)
void SetSourceIdentity(Aws::String &&value)
AWS_STS_API AssumeRoleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetAssumedRoleUser(const AssumedRoleUser &value)
AssumeRoleResult & WithSourceIdentity(Aws::String &&value)
void SetResponseMetadata(ResponseMetadata &&value)
const AssumedRoleUser & GetAssumedRoleUser() const
const Credentials & GetCredentials() const
const ResponseMetadata & GetResponseMetadata() const
AssumeRoleResult & WithCredentials(Credentials &&value)
AssumeRoleResult & WithCredentials(const Credentials &value)
AssumeRoleResult & WithPackedPolicySize(int value)
AssumeRoleResult & WithSourceIdentity(const char *value)
void SetResponseMetadata(const ResponseMetadata &value)
AssumeRoleResult & WithSourceIdentity(const Aws::String &value)
AssumeRoleResult & WithAssumedRoleUser(AssumedRoleUser &&value)
AWS_STS_API AssumeRoleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetCredentials(Credentials &&value)
void SetSourceIdentity(const char *value)
AssumeRoleResult & WithResponseMetadata(const ResponseMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument