AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Athena {
27namespace Model {
29 public:
30 AWS_ATHENA_API GetSessionResult() = default;
33
35
38 inline const Aws::String& GetSessionId() const { return m_sessionId; }
39 template <typename SessionIdT = Aws::String>
40 void SetSessionId(SessionIdT&& value) {
41 m_sessionIdHasBeenSet = true;
42 m_sessionId = std::forward<SessionIdT>(value);
43 }
44 template <typename SessionIdT = Aws::String>
45 GetSessionResult& WithSessionId(SessionIdT&& value) {
46 SetSessionId(std::forward<SessionIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
62 GetSessionResult& WithDescription(DescriptionT&& value) {
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
73 template <typename WorkGroupT = Aws::String>
74 void SetWorkGroup(WorkGroupT&& value) {
75 m_workGroupHasBeenSet = true;
76 m_workGroup = std::forward<WorkGroupT>(value);
77 }
78 template <typename WorkGroupT = Aws::String>
79 GetSessionResult& WithWorkGroup(WorkGroupT&& value) {
80 SetWorkGroup(std::forward<WorkGroupT>(value));
81 return *this;
82 }
84
86
91 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
92 template <typename EngineVersionT = Aws::String>
93 void SetEngineVersion(EngineVersionT&& value) {
94 m_engineVersionHasBeenSet = true;
95 m_engineVersion = std::forward<EngineVersionT>(value);
96 }
97 template <typename EngineVersionT = Aws::String>
98 GetSessionResult& WithEngineVersion(EngineVersionT&& value) {
99 SetEngineVersion(std::forward<EngineVersionT>(value));
100 return *this;
101 }
103
105
108 inline const EngineConfiguration& GetEngineConfiguration() const { return m_engineConfiguration; }
109 template <typename EngineConfigurationT = EngineConfiguration>
110 void SetEngineConfiguration(EngineConfigurationT&& value) {
111 m_engineConfigurationHasBeenSet = true;
112 m_engineConfiguration = std::forward<EngineConfigurationT>(value);
113 }
114 template <typename EngineConfigurationT = EngineConfiguration>
115 GetSessionResult& WithEngineConfiguration(EngineConfigurationT&& value) {
116 SetEngineConfiguration(std::forward<EngineConfigurationT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetNotebookVersion() const { return m_notebookVersion; }
126 template <typename NotebookVersionT = Aws::String>
127 void SetNotebookVersion(NotebookVersionT&& value) {
128 m_notebookVersionHasBeenSet = true;
129 m_notebookVersion = std::forward<NotebookVersionT>(value);
130 }
131 template <typename NotebookVersionT = Aws::String>
132 GetSessionResult& WithNotebookVersion(NotebookVersionT&& value) {
133 SetNotebookVersion(std::forward<NotebookVersionT>(value));
134 return *this;
135 }
137
139
140 inline const MonitoringConfiguration& GetMonitoringConfiguration() const { return m_monitoringConfiguration; }
141 template <typename MonitoringConfigurationT = MonitoringConfiguration>
142 void SetMonitoringConfiguration(MonitoringConfigurationT&& value) {
143 m_monitoringConfigurationHasBeenSet = true;
144 m_monitoringConfiguration = std::forward<MonitoringConfigurationT>(value);
145 }
146 template <typename MonitoringConfigurationT = MonitoringConfiguration>
147 GetSessionResult& WithMonitoringConfiguration(MonitoringConfigurationT&& value) {
148 SetMonitoringConfiguration(std::forward<MonitoringConfigurationT>(value));
149 return *this;
150 }
152
154
157 inline const SessionConfiguration& GetSessionConfiguration() const { return m_sessionConfiguration; }
158 template <typename SessionConfigurationT = SessionConfiguration>
159 void SetSessionConfiguration(SessionConfigurationT&& value) {
160 m_sessionConfigurationHasBeenSet = true;
161 m_sessionConfiguration = std::forward<SessionConfigurationT>(value);
162 }
163 template <typename SessionConfigurationT = SessionConfiguration>
164 GetSessionResult& WithSessionConfiguration(SessionConfigurationT&& value) {
165 SetSessionConfiguration(std::forward<SessionConfigurationT>(value));
166 return *this;
167 }
169
171
174 inline const SessionStatus& GetStatus() const { return m_status; }
175 template <typename StatusT = SessionStatus>
176 void SetStatus(StatusT&& value) {
177 m_statusHasBeenSet = true;
178 m_status = std::forward<StatusT>(value);
179 }
180 template <typename StatusT = SessionStatus>
181 GetSessionResult& WithStatus(StatusT&& value) {
182 SetStatus(std::forward<StatusT>(value));
183 return *this;
184 }
186
188
191 inline const SessionStatistics& GetStatistics() const { return m_statistics; }
192 template <typename StatisticsT = SessionStatistics>
193 void SetStatistics(StatisticsT&& value) {
194 m_statisticsHasBeenSet = true;
195 m_statistics = std::forward<StatisticsT>(value);
196 }
197 template <typename StatisticsT = SessionStatistics>
198 GetSessionResult& WithStatistics(StatisticsT&& value) {
199 SetStatistics(std::forward<StatisticsT>(value));
200 return *this;
201 }
203
205
206 inline const Aws::String& GetRequestId() const { return m_requestId; }
207 template <typename RequestIdT = Aws::String>
208 void SetRequestId(RequestIdT&& value) {
209 m_requestIdHasBeenSet = true;
210 m_requestId = std::forward<RequestIdT>(value);
211 }
212 template <typename RequestIdT = Aws::String>
213 GetSessionResult& WithRequestId(RequestIdT&& value) {
214 SetRequestId(std::forward<RequestIdT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_sessionId;
220
221 Aws::String m_description;
222
223 Aws::String m_workGroup;
224
225 Aws::String m_engineVersion;
226
227 EngineConfiguration m_engineConfiguration;
228
229 Aws::String m_notebookVersion;
230
231 MonitoringConfiguration m_monitoringConfiguration;
232
233 SessionConfiguration m_sessionConfiguration;
234
235 SessionStatus m_status;
236
237 SessionStatistics m_statistics;
238
239 Aws::String m_requestId;
240 bool m_sessionIdHasBeenSet = false;
241 bool m_descriptionHasBeenSet = false;
242 bool m_workGroupHasBeenSet = false;
243 bool m_engineVersionHasBeenSet = false;
244 bool m_engineConfigurationHasBeenSet = false;
245 bool m_notebookVersionHasBeenSet = false;
246 bool m_monitoringConfigurationHasBeenSet = false;
247 bool m_sessionConfigurationHasBeenSet = false;
248 bool m_statusHasBeenSet = false;
249 bool m_statisticsHasBeenSet = false;
250 bool m_requestIdHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace Athena
255} // 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_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