AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetSessionTokenResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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 {
33 public:
34 AWS_STS_API GetSessionTokenResult() = default;
37
39
45 inline const Credentials& GetCredentials() const { return m_credentials; }
46 template <typename CredentialsT = Credentials>
47 void SetCredentials(CredentialsT&& value) {
48 m_credentialsHasBeenSet = true;
49 m_credentials = std::forward<CredentialsT>(value);
50 }
51 template <typename CredentialsT = Credentials>
52 GetSessionTokenResult& WithCredentials(CredentialsT&& value) {
53 SetCredentials(std::forward<CredentialsT>(value));
54 return *this;
55 }
57
59
60 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
61 template <typename ResponseMetadataT = ResponseMetadata>
62 void SetResponseMetadata(ResponseMetadataT&& value) {
63 m_responseMetadataHasBeenSet = true;
64 m_responseMetadata = std::forward<ResponseMetadataT>(value);
65 }
66 template <typename ResponseMetadataT = ResponseMetadata>
67 GetSessionTokenResult& WithResponseMetadata(ResponseMetadataT&& value) {
68 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
69 return *this;
70 }
72 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
73
74 private:
75 Credentials m_credentials;
76
77 ResponseMetadata m_responseMetadata;
78 Aws::Http::HttpResponseCode m_HttpResponseCode;
79 bool m_credentialsHasBeenSet = false;
80 bool m_responseMetadataHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace STS
85} // namespace Aws
GetSessionTokenResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_STS_API GetSessionTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_STS_API GetSessionTokenResult()=default
GetSessionTokenResult & WithCredentials(CredentialsT &&value)
const ResponseMetadata & GetResponseMetadata() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetResponseMetadata(ResponseMetadataT &&value)
AWS_STS_API GetSessionTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Utils::Xml::XmlDocument XmlDocument