AWS SDK for C++  1.9.104
AWS SDK for C++
GetSessionTokenResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sts/STS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace STS
25 {
26 namespace Model
27 {
36  {
37  public:
41 
42 
49  inline const Credentials& GetCredentials() const{ return m_credentials; }
50 
57  inline void SetCredentials(const Credentials& value) { m_credentials = value; }
58 
65  inline void SetCredentials(Credentials&& value) { m_credentials = std::move(value); }
66 
73  inline GetSessionTokenResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
74 
81  inline GetSessionTokenResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
82 
83 
84 
85  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
86 
87 
88  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
89 
90 
91  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
92 
93 
94  inline GetSessionTokenResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
95 
96 
97  inline GetSessionTokenResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
98 
99  private:
100 
101  Credentials m_credentials;
102 
103  ResponseMetadata m_responseMetadata;
104  };
105 
106 } // namespace Model
107 } // namespace STS
108 } // namespace Aws
Aws::STS::Model::Credentials
Definition: Credentials.h:34
Aws::STS::Model::GetSessionTokenResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: GetSessionTokenResult.h:85
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::STS::Model::GetSessionTokenResult::WithResponseMetadata
GetSessionTokenResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: GetSessionTokenResult.h:94
Aws::STS::Model::GetSessionTokenResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: GetSessionTokenResult.h:91
Credentials.h
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::GetSessionTokenResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: GetSessionTokenResult.h:88
Aws::STS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::STS::Model::GetSessionTokenResult::GetCredentials
const Credentials & GetCredentials() const
Definition: GetSessionTokenResult.h:49
ResponseMetadata.h
Aws::STS::Model::GetSessionTokenResult::SetCredentials
void SetCredentials(Credentials &&value)
Definition: GetSessionTokenResult.h:65
Aws::STS::Model::GetSessionTokenResult::WithResponseMetadata
GetSessionTokenResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: GetSessionTokenResult.h:97
STS_EXPORTS.h
Aws::STS::Model::GetSessionTokenResult
Definition: GetSessionTokenResult.h:36
Aws::STS::Model::GetSessionTokenResult::GetSessionTokenResult
GetSessionTokenResult()
Aws::STS::Model::GetSessionTokenResult::WithCredentials
GetSessionTokenResult & WithCredentials(Credentials &&value)
Definition: GetSessionTokenResult.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::GetSessionTokenResult::operator=
GetSessionTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::GetSessionTokenResult::SetCredentials
void SetCredentials(const Credentials &value)
Definition: GetSessionTokenResult.h:57
Aws::STS::Model::GetSessionTokenResult::GetSessionTokenResult
GetSessionTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::GetSessionTokenResult::WithCredentials
GetSessionTokenResult & WithCredentials(const Credentials &value)
Definition: GetSessionTokenResult.h:73