AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
GetWebIdentityTokenResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sts/STS_EXPORTS.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 GetWebIdentityTokenResult() = default;
31
33
46 inline const Aws::String& GetWebIdentityToken() const { return m_webIdentityToken; }
47 template <typename WebIdentityTokenT = Aws::String>
48 void SetWebIdentityToken(WebIdentityTokenT&& value) {
49 m_webIdentityTokenHasBeenSet = true;
50 m_webIdentityToken = std::forward<WebIdentityTokenT>(value);
51 }
52 template <typename WebIdentityTokenT = Aws::String>
53 GetWebIdentityTokenResult& WithWebIdentityToken(WebIdentityTokenT&& value) {
54 SetWebIdentityToken(std::forward<WebIdentityTokenT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::Utils::DateTime& GetExpiration() const { return m_expiration; }
67 template <typename ExpirationT = Aws::Utils::DateTime>
68 void SetExpiration(ExpirationT&& value) {
69 m_expirationHasBeenSet = true;
70 m_expiration = std::forward<ExpirationT>(value);
71 }
72 template <typename ExpirationT = Aws::Utils::DateTime>
74 SetExpiration(std::forward<ExpirationT>(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 GetWebIdentityTokenResult& 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 Aws::String m_webIdentityToken;
97
98 Aws::Utils::DateTime m_expiration{};
99
100 ResponseMetadata m_responseMetadata;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_webIdentityTokenHasBeenSet = false;
103 bool m_expirationHasBeenSet = false;
104 bool m_responseMetadataHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace STS
109} // namespace Aws
AWS_STS_API GetWebIdentityTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_STS_API GetWebIdentityTokenResult()=default
void SetWebIdentityToken(WebIdentityTokenT &&value)
const ResponseMetadata & GetResponseMetadata() const
GetWebIdentityTokenResult & WithWebIdentityToken(WebIdentityTokenT &&value)
AWS_STS_API GetWebIdentityTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetWebIdentityTokenResult & WithExpiration(ExpirationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetWebIdentityTokenResult & WithResponseMetadata(ResponseMetadataT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
const Aws::Utils::DateTime & GetExpiration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument