AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AssumeRootResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sts/STS_EXPORTS.h>
9#include <aws/sts/model/Credentials.h>
10#include <aws/sts/model/ResponseMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace STS {
24namespace Model {
26 public:
27 AWS_STS_API AssumeRootResult() = default;
30
32
38 inline const Credentials& GetCredentials() const { return m_credentials; }
39 template <typename CredentialsT = Credentials>
40 void SetCredentials(CredentialsT&& value) {
41 m_credentialsHasBeenSet = true;
42 m_credentials = std::forward<CredentialsT>(value);
43 }
44 template <typename CredentialsT = Credentials>
45 AssumeRootResult& WithCredentials(CredentialsT&& value) {
46 SetCredentials(std::forward<CredentialsT>(value));
47 return *this;
48 }
50
52
65 inline const Aws::String& GetSourceIdentity() const { return m_sourceIdentity; }
66 template <typename SourceIdentityT = Aws::String>
67 void SetSourceIdentity(SourceIdentityT&& value) {
68 m_sourceIdentityHasBeenSet = true;
69 m_sourceIdentity = std::forward<SourceIdentityT>(value);
70 }
71 template <typename SourceIdentityT = Aws::String>
72 AssumeRootResult& WithSourceIdentity(SourceIdentityT&& value) {
73 SetSourceIdentity(std::forward<SourceIdentityT>(value));
74 return *this;
75 }
77
79
80 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
81 template <typename ResponseMetadataT = ResponseMetadata>
82 void SetResponseMetadata(ResponseMetadataT&& value) {
83 m_responseMetadataHasBeenSet = true;
84 m_responseMetadata = std::forward<ResponseMetadataT>(value);
85 }
86 template <typename ResponseMetadataT = ResponseMetadata>
87 AssumeRootResult& WithResponseMetadata(ResponseMetadataT&& value) {
88 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
89 return *this;
90 }
92 private:
93 Credentials m_credentials;
94
95 Aws::String m_sourceIdentity;
96
97 ResponseMetadata m_responseMetadata;
98 bool m_credentialsHasBeenSet = false;
99 bool m_sourceIdentityHasBeenSet = false;
100 bool m_responseMetadataHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace STS
105} // namespace Aws
const ResponseMetadata & GetResponseMetadata() 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