AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetSessionResult.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/model/EngineConfiguration.h>
9#include <aws/athena/model/MonitoringConfiguration.h>
10#include <aws/athena/model/SessionConfiguration.h>
11#include <aws/athena/model/SessionStatistics.h>
12#include <aws/athena/model/SessionStatus.h>
13#include <aws/core/http/HttpResponse.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Athena {
28namespace Model {
30 public:
31 AWS_ATHENA_API GetSessionResult() = default;
34
36
39 inline const Aws::String& GetSessionId() const { return m_sessionId; }
40 template <typename SessionIdT = Aws::String>
41 void SetSessionId(SessionIdT&& value) {
42 m_sessionIdHasBeenSet = true;
43 m_sessionId = std::forward<SessionIdT>(value);
44 }
45 template <typename SessionIdT = Aws::String>
46 GetSessionResult& WithSessionId(SessionIdT&& value) {
47 SetSessionId(std::forward<SessionIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 GetSessionResult& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
74 template <typename WorkGroupT = Aws::String>
75 void SetWorkGroup(WorkGroupT&& value) {
76 m_workGroupHasBeenSet = true;
77 m_workGroup = std::forward<WorkGroupT>(value);
78 }
79 template <typename WorkGroupT = Aws::String>
80 GetSessionResult& WithWorkGroup(WorkGroupT&& value) {
81 SetWorkGroup(std::forward<WorkGroupT>(value));
82 return *this;
83 }
85
87
92 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
93 template <typename EngineVersionT = Aws::String>
94 void SetEngineVersion(EngineVersionT&& value) {
95 m_engineVersionHasBeenSet = true;
96 m_engineVersion = std::forward<EngineVersionT>(value);
97 }
98 template <typename EngineVersionT = Aws::String>
99 GetSessionResult& WithEngineVersion(EngineVersionT&& value) {
100 SetEngineVersion(std::forward<EngineVersionT>(value));
101 return *this;
102 }
104
106
109 inline const EngineConfiguration& GetEngineConfiguration() const { return m_engineConfiguration; }
110 template <typename EngineConfigurationT = EngineConfiguration>
111 void SetEngineConfiguration(EngineConfigurationT&& value) {
112 m_engineConfigurationHasBeenSet = true;
113 m_engineConfiguration = std::forward<EngineConfigurationT>(value);
114 }
115 template <typename EngineConfigurationT = EngineConfiguration>
116 GetSessionResult& WithEngineConfiguration(EngineConfigurationT&& value) {
117 SetEngineConfiguration(std::forward<EngineConfigurationT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetNotebookVersion() const { return m_notebookVersion; }
127 template <typename NotebookVersionT = Aws::String>
128 void SetNotebookVersion(NotebookVersionT&& value) {
129 m_notebookVersionHasBeenSet = true;
130 m_notebookVersion = std::forward<NotebookVersionT>(value);
131 }
132 template <typename NotebookVersionT = Aws::String>
133 GetSessionResult& WithNotebookVersion(NotebookVersionT&& value) {
134 SetNotebookVersion(std::forward<NotebookVersionT>(value));
135 return *this;
136 }
138
140
141 inline const MonitoringConfiguration& GetMonitoringConfiguration() const { return m_monitoringConfiguration; }
142 template <typename MonitoringConfigurationT = MonitoringConfiguration>
143 void SetMonitoringConfiguration(MonitoringConfigurationT&& value) {
144 m_monitoringConfigurationHasBeenSet = true;
145 m_monitoringConfiguration = std::forward<MonitoringConfigurationT>(value);
146 }
147 template <typename MonitoringConfigurationT = MonitoringConfiguration>
148 GetSessionResult& WithMonitoringConfiguration(MonitoringConfigurationT&& value) {
149 SetMonitoringConfiguration(std::forward<MonitoringConfigurationT>(value));
150 return *this;
151 }
153
155
158 inline const SessionConfiguration& GetSessionConfiguration() const { return m_sessionConfiguration; }
159 template <typename SessionConfigurationT = SessionConfiguration>
160 void SetSessionConfiguration(SessionConfigurationT&& value) {
161 m_sessionConfigurationHasBeenSet = true;
162 m_sessionConfiguration = std::forward<SessionConfigurationT>(value);
163 }
164 template <typename SessionConfigurationT = SessionConfiguration>
165 GetSessionResult& WithSessionConfiguration(SessionConfigurationT&& value) {
166 SetSessionConfiguration(std::forward<SessionConfigurationT>(value));
167 return *this;
168 }
170
172
175 inline const SessionStatus& GetStatus() const { return m_status; }
176 template <typename StatusT = SessionStatus>
177 void SetStatus(StatusT&& value) {
178 m_statusHasBeenSet = true;
179 m_status = std::forward<StatusT>(value);
180 }
181 template <typename StatusT = SessionStatus>
182 GetSessionResult& WithStatus(StatusT&& value) {
183 SetStatus(std::forward<StatusT>(value));
184 return *this;
185 }
187
189
192 inline const SessionStatistics& GetStatistics() const { return m_statistics; }
193 template <typename StatisticsT = SessionStatistics>
194 void SetStatistics(StatisticsT&& value) {
195 m_statisticsHasBeenSet = true;
196 m_statistics = std::forward<StatisticsT>(value);
197 }
198 template <typename StatisticsT = SessionStatistics>
199 GetSessionResult& WithStatistics(StatisticsT&& value) {
200 SetStatistics(std::forward<StatisticsT>(value));
201 return *this;
202 }
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 template <typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) {
210 m_requestIdHasBeenSet = true;
211 m_requestId = std::forward<RequestIdT>(value);
212 }
213 template <typename RequestIdT = Aws::String>
214 GetSessionResult& WithRequestId(RequestIdT&& value) {
215 SetRequestId(std::forward<RequestIdT>(value));
216 return *this;
217 }
219 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
220
221 private:
222 Aws::String m_sessionId;
223
224 Aws::String m_description;
225
226 Aws::String m_workGroup;
227
228 Aws::String m_engineVersion;
229
230 EngineConfiguration m_engineConfiguration;
231
232 Aws::String m_notebookVersion;
233
234 MonitoringConfiguration m_monitoringConfiguration;
235
236 SessionConfiguration m_sessionConfiguration;
237
238 SessionStatus m_status;
239
240 SessionStatistics m_statistics;
241
242 Aws::String m_requestId;
243 Aws::Http::HttpResponseCode m_HttpResponseCode;
244 bool m_sessionIdHasBeenSet = false;
245 bool m_descriptionHasBeenSet = false;
246 bool m_workGroupHasBeenSet = false;
247 bool m_engineVersionHasBeenSet = false;
248 bool m_engineConfigurationHasBeenSet = false;
249 bool m_notebookVersionHasBeenSet = false;
250 bool m_monitoringConfigurationHasBeenSet = false;
251 bool m_sessionConfigurationHasBeenSet = false;
252 bool m_statusHasBeenSet = false;
253 bool m_statisticsHasBeenSet = false;
254 bool m_requestIdHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace Athena
259} // namespace Aws
const SessionStatus & GetStatus() const
GetSessionResult & WithSessionId(SessionIdT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetRequestId() const
GetSessionResult & WithDescription(DescriptionT &&value)
GetSessionResult & WithEngineConfiguration(EngineConfigurationT &&value)
GetSessionResult & WithStatus(StatusT &&value)
GetSessionResult & WithWorkGroup(WorkGroupT &&value)
void SetEngineConfiguration(EngineConfigurationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_ATHENA_API GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNotebookVersion(NotebookVersionT &&value)
GetSessionResult & WithSessionConfiguration(SessionConfigurationT &&value)
void SetStatistics(StatisticsT &&value)
void SetEngineVersion(EngineVersionT &&value)
const SessionConfiguration & GetSessionConfiguration() const
const MonitoringConfiguration & GetMonitoringConfiguration() const
void SetSessionConfiguration(SessionConfigurationT &&value)
GetSessionResult & WithNotebookVersion(NotebookVersionT &&value)
GetSessionResult & WithStatistics(StatisticsT &&value)
GetSessionResult & WithRequestId(RequestIdT &&value)
const SessionStatistics & GetStatistics() const
const Aws::String & GetWorkGroup() const
AWS_ATHENA_API GetSessionResult()=default
GetSessionResult & WithMonitoringConfiguration(MonitoringConfigurationT &&value)
AWS_ATHENA_API GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
void SetSessionId(SessionIdT &&value)
void SetMonitoringConfiguration(MonitoringConfigurationT &&value)
GetSessionResult & WithEngineVersion(EngineVersionT &&value)
const EngineConfiguration & GetEngineConfiguration() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetEngineVersion() const
void SetWorkGroup(WorkGroupT &&value)
const Aws::String & GetSessionId() const
const Aws::String & GetNotebookVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue