AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
GetSessionEndpointResult.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/elasticmapreduce/EMR_EXPORTS.h>
11#include <aws/elasticmapreduce/model/Credentials.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace EMR {
25namespace Model {
33 public:
34 AWS_EMR_API GetSessionEndpointResult() = default;
37
39
42 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
43 template <typename EndpointT = Aws::String>
44 void SetEndpoint(EndpointT&& value) {
45 m_endpointHasBeenSet = true;
46 m_endpoint = std::forward<EndpointT>(value);
47 }
48 template <typename EndpointT = Aws::String>
50 SetEndpoint(std::forward<EndpointT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetAuthToken() const { return m_authToken; }
61 template <typename AuthTokenT = Aws::String>
62 void SetAuthToken(AuthTokenT&& value) {
63 m_authTokenHasBeenSet = true;
64 m_authToken = std::forward<AuthTokenT>(value);
65 }
66 template <typename AuthTokenT = Aws::String>
68 SetAuthToken(std::forward<AuthTokenT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetAuthTokenExpirationTime() const { return m_authTokenExpirationTime; }
79 template <typename AuthTokenExpirationTimeT = Aws::Utils::DateTime>
80 void SetAuthTokenExpirationTime(AuthTokenExpirationTimeT&& value) {
81 m_authTokenExpirationTimeHasBeenSet = true;
82 m_authTokenExpirationTime = std::forward<AuthTokenExpirationTimeT>(value);
83 }
84 template <typename AuthTokenExpirationTimeT = Aws::Utils::DateTime>
85 GetSessionEndpointResult& WithAuthTokenExpirationTime(AuthTokenExpirationTimeT&& value) {
86 SetAuthTokenExpirationTime(std::forward<AuthTokenExpirationTimeT>(value));
87 return *this;
88 }
90
92
96 inline const Credentials& GetCredentials() const { return m_credentials; }
97 template <typename CredentialsT = Credentials>
98 void SetCredentials(CredentialsT&& value) {
99 m_credentialsHasBeenSet = true;
100 m_credentials = std::forward<CredentialsT>(value);
101 }
102 template <typename CredentialsT = Credentials>
104 SetCredentials(std::forward<CredentialsT>(value));
105 return *this;
106 }
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template <typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) {
114 m_requestIdHasBeenSet = true;
115 m_requestId = std::forward<RequestIdT>(value);
116 }
117 template <typename RequestIdT = Aws::String>
119 SetRequestId(std::forward<RequestIdT>(value));
120 return *this;
121 }
123 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
124
125 private:
126 Aws::String m_endpoint;
127
128 Aws::String m_authToken;
129
130 Aws::Utils::DateTime m_authTokenExpirationTime{};
131
132 Credentials m_credentials;
133
134 Aws::String m_requestId;
135 Aws::Http::HttpResponseCode m_HttpResponseCode;
136 bool m_endpointHasBeenSet = false;
137 bool m_authTokenHasBeenSet = false;
138 bool m_authTokenExpirationTimeHasBeenSet = false;
139 bool m_credentialsHasBeenSet = false;
140 bool m_requestIdHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace EMR
145} // namespace Aws
GetSessionEndpointResult & WithRequestId(RequestIdT &&value)
GetSessionEndpointResult & WithAuthTokenExpirationTime(AuthTokenExpirationTimeT &&value)
AWS_EMR_API GetSessionEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionEndpointResult & WithCredentials(CredentialsT &&value)
void SetAuthTokenExpirationTime(AuthTokenExpirationTimeT &&value)
AWS_EMR_API GetSessionEndpointResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetSessionEndpointResult & WithAuthToken(AuthTokenT &&value)
AWS_EMR_API GetSessionEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionEndpointResult & WithEndpoint(EndpointT &&value)
const Aws::Utils::DateTime & GetAuthTokenExpirationTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue