AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
AssumeRootResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sts/STS_EXPORTS.h>
10#include <aws/sts/model/Credentials.h>
11#include <aws/sts/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace STS {
25namespace Model {
27 public:
28 AWS_STS_API AssumeRootResult() = default;
31
33
39 inline const Credentials& GetCredentials() const { return m_credentials; }
40 template <typename CredentialsT = Credentials>
41 void SetCredentials(CredentialsT&& value) {
42 m_credentialsHasBeenSet = true;
43 m_credentials = std::forward<CredentialsT>(value);
44 }
45 template <typename CredentialsT = Credentials>
46 AssumeRootResult& WithCredentials(CredentialsT&& value) {
47 SetCredentials(std::forward<CredentialsT>(value));
48 return *this;
49 }
51
53
66 inline const Aws::String& GetSourceIdentity() const { return m_sourceIdentity; }
67 template <typename SourceIdentityT = Aws::String>
68 void SetSourceIdentity(SourceIdentityT&& value) {
69 m_sourceIdentityHasBeenSet = true;
70 m_sourceIdentity = std::forward<SourceIdentityT>(value);
71 }
72 template <typename SourceIdentityT = Aws::String>
73 AssumeRootResult& WithSourceIdentity(SourceIdentityT&& value) {
74 SetSourceIdentity(std::forward<SourceIdentityT>(value));
75 return *this;
76 }
78
80
81 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
82 template <typename ResponseMetadataT = ResponseMetadata>
83 void SetResponseMetadata(ResponseMetadataT&& value) {
84 m_responseMetadataHasBeenSet = true;
85 m_responseMetadata = std::forward<ResponseMetadataT>(value);
86 }
87 template <typename ResponseMetadataT = ResponseMetadata>
88 AssumeRootResult& WithResponseMetadata(ResponseMetadataT&& value) {
89 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 Credentials m_credentials;
97
98 Aws::String m_sourceIdentity;
99
100 ResponseMetadata m_responseMetadata;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_credentialsHasBeenSet = false;
103 bool m_sourceIdentityHasBeenSet = false;
104 bool m_responseMetadataHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace STS
109} // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_STS_API AssumeRootResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AssumeRootResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_STS_API AssumeRootResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_STS_API AssumeRootResult()=default
void SetCredentials(CredentialsT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
void SetSourceIdentity(SourceIdentityT &&value)
AssumeRootResult & WithCredentials(CredentialsT &&value)
const Credentials & GetCredentials() const
AssumeRootResult & WithSourceIdentity(SourceIdentityT &&value)
const Aws::String & GetSourceIdentity() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument