AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssumeRootResult.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/ResponseMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace STS
26{
27namespace Model
28{
30 {
31 public:
32 AWS_STS_API AssumeRootResult() = default;
35
36
38
44 inline const Credentials& GetCredentials() const { return m_credentials; }
45 template<typename CredentialsT = Credentials>
46 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
47 template<typename CredentialsT = Credentials>
48 AssumeRootResult& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
50
52
65 inline const Aws::String& GetSourceIdentity() const { return m_sourceIdentity; }
66 template<typename SourceIdentityT = Aws::String>
67 void SetSourceIdentity(SourceIdentityT&& value) { m_sourceIdentityHasBeenSet = true; m_sourceIdentity = std::forward<SourceIdentityT>(value); }
68 template<typename SourceIdentityT = Aws::String>
69 AssumeRootResult& WithSourceIdentity(SourceIdentityT&& value) { SetSourceIdentity(std::forward<SourceIdentityT>(value)); return *this;}
71
73
74 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
75 template<typename ResponseMetadataT = ResponseMetadata>
76 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
77 template<typename ResponseMetadataT = ResponseMetadata>
78 AssumeRootResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
80 private:
81
82 Credentials m_credentials;
83 bool m_credentialsHasBeenSet = false;
84
85 Aws::String m_sourceIdentity;
86 bool m_sourceIdentityHasBeenSet = false;
87
88 ResponseMetadata m_responseMetadata;
89 bool m_responseMetadataHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace STS
94} // 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