AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetSessionEndpointResult.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Athena {
23namespace Model {
25 public:
26 AWS_ATHENA_API GetSessionEndpointResult() = default;
29
31
34 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
35 template <typename EndpointUrlT = Aws::String>
36 void SetEndpointUrl(EndpointUrlT&& value) {
37 m_endpointUrlHasBeenSet = true;
38 m_endpointUrl = std::forward<EndpointUrlT>(value);
39 }
40 template <typename EndpointUrlT = Aws::String>
42 SetEndpointUrl(std::forward<EndpointUrlT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetAuthToken() const { return m_authToken; }
52 template <typename AuthTokenT = Aws::String>
53 void SetAuthToken(AuthTokenT&& value) {
54 m_authTokenHasBeenSet = true;
55 m_authToken = std::forward<AuthTokenT>(value);
56 }
57 template <typename AuthTokenT = Aws::String>
59 SetAuthToken(std::forward<AuthTokenT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Utils::DateTime& GetAuthTokenExpirationTime() const { return m_authTokenExpirationTime; }
69 template <typename AuthTokenExpirationTimeT = Aws::Utils::DateTime>
70 void SetAuthTokenExpirationTime(AuthTokenExpirationTimeT&& value) {
71 m_authTokenExpirationTimeHasBeenSet = true;
72 m_authTokenExpirationTime = std::forward<AuthTokenExpirationTimeT>(value);
73 }
74 template <typename AuthTokenExpirationTimeT = Aws::Utils::DateTime>
75 GetSessionEndpointResult& WithAuthTokenExpirationTime(AuthTokenExpirationTimeT&& value) {
76 SetAuthTokenExpirationTime(std::forward<AuthTokenExpirationTimeT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_endpointUrl;
97
98 Aws::String m_authToken;
99
100 Aws::Utils::DateTime m_authTokenExpirationTime{};
101
102 Aws::String m_requestId;
103 bool m_endpointUrlHasBeenSet = false;
104 bool m_authTokenHasBeenSet = false;
105 bool m_authTokenExpirationTimeHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Athena
111} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue