AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetSessionEndpointResult.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Athena {
24namespace Model {
26 public:
27 AWS_ATHENA_API GetSessionEndpointResult() = default;
30
32
35 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
36 template <typename EndpointUrlT = Aws::String>
37 void SetEndpointUrl(EndpointUrlT&& value) {
38 m_endpointUrlHasBeenSet = true;
39 m_endpointUrl = std::forward<EndpointUrlT>(value);
40 }
41 template <typename EndpointUrlT = Aws::String>
43 SetEndpointUrl(std::forward<EndpointUrlT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetAuthToken() const { return m_authToken; }
53 template <typename AuthTokenT = Aws::String>
54 void SetAuthToken(AuthTokenT&& value) {
55 m_authTokenHasBeenSet = true;
56 m_authToken = std::forward<AuthTokenT>(value);
57 }
58 template <typename AuthTokenT = Aws::String>
60 SetAuthToken(std::forward<AuthTokenT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetAuthTokenExpirationTime() const { return m_authTokenExpirationTime; }
70 template <typename AuthTokenExpirationTimeT = Aws::Utils::DateTime>
71 void SetAuthTokenExpirationTime(AuthTokenExpirationTimeT&& value) {
72 m_authTokenExpirationTimeHasBeenSet = true;
73 m_authTokenExpirationTime = std::forward<AuthTokenExpirationTimeT>(value);
74 }
75 template <typename AuthTokenExpirationTimeT = Aws::Utils::DateTime>
76 GetSessionEndpointResult& WithAuthTokenExpirationTime(AuthTokenExpirationTimeT&& value) {
77 SetAuthTokenExpirationTime(std::forward<AuthTokenExpirationTimeT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
97
98 private:
99 Aws::String m_endpointUrl;
100
101 Aws::String m_authToken;
102
103 Aws::Utils::DateTime m_authTokenExpirationTime{};
104
105 Aws::String m_requestId;
106 Aws::Http::HttpResponseCode m_HttpResponseCode;
107 bool m_endpointUrlHasBeenSet = false;
108 bool m_authTokenHasBeenSet = false;
109 bool m_authTokenExpirationTimeHasBeenSet = false;
110 bool m_requestIdHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Athena
115} // namespace Aws
const Aws::Utils::DateTime & GetAuthTokenExpirationTime() const
GetSessionEndpointResult & WithAuthTokenExpirationTime(AuthTokenExpirationTimeT &&value)
GetSessionEndpointResult & WithRequestId(RequestIdT &&value)
AWS_ATHENA_API GetSessionEndpointResult()=default
AWS_ATHENA_API GetSessionEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionEndpointResult & WithEndpointUrl(EndpointUrlT &&value)
void SetAuthTokenExpirationTime(AuthTokenExpirationTimeT &&value)
AWS_ATHENA_API GetSessionEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionEndpointResult & WithAuthToken(AuthTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue