AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
42 inline const Aws::String& GetWebIdentityToken() const { return m_webIdentityToken; }
43 template <typename WebIdentityTokenT = Aws::String>
44 void SetWebIdentityToken(WebIdentityTokenT&& value) {
45 m_webIdentityTokenHasBeenSet = true;
46 m_webIdentityToken = std::forward<WebIdentityTokenT>(value);
47 }
48 template <typename WebIdentityTokenT = Aws::String>
49 GetWebIdentityTokenResult& WithWebIdentityToken(WebIdentityTokenT&& value) {
50 SetWebIdentityToken(std::forward<WebIdentityTokenT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Utils::DateTime& GetExpiration() const { return m_expiration; }
63 template <typename ExpirationT = Aws::Utils::DateTime>
64 void SetExpiration(ExpirationT&& value) {
65 m_expirationHasBeenSet = true;
66 m_expiration = std::forward<ExpirationT>(value);
67 }
68 template <typename ExpirationT = Aws::Utils::DateTime>
70 SetExpiration(std::forward<ExpirationT>(value));
71 return *this;
72 }
74
76
77 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
78 template <typename ResponseMetadataT = ResponseMetadata>
79 void SetResponseMetadata(ResponseMetadataT&& value) {
80 m_responseMetadataHasBeenSet = true;
81 m_responseMetadata = std::forward<ResponseMetadataT>(value);
82 }
83 template <typename ResponseMetadataT = ResponseMetadata>
84 GetWebIdentityTokenResult& WithResponseMetadata(ResponseMetadataT&& value) {
85 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
86 return *this;
87 }
89 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
90
91 private:
92 Aws::String m_webIdentityToken;
93
94 Aws::Utils::DateTime m_expiration{};
95
96 ResponseMetadata m_responseMetadata;
97 Aws::Http::HttpResponseCode m_HttpResponseCode;
98 bool m_webIdentityTokenHasBeenSet = false;
99 bool m_expirationHasBeenSet = false;
100 bool m_responseMetadataHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace STS
105} // 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