AWS SDK for C++

AWS SDK for C++ Version 1.11.826

Loading...
Searching...
No Matches
Session.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/ConnectionsList.h>
12#include <aws/glue/model/SessionCommand.h>
13#include <aws/glue/model/SessionStatus.h>
14#include <aws/glue/model/SessionType.h>
15#include <aws/glue/model/WorkerType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue {
27namespace Model {
28
35class Session {
36 public:
37 AWS_GLUE_API Session() = default;
38 AWS_GLUE_API Session(Aws::Utils::Json::JsonView jsonValue);
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 Session& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Utils::DateTime& GetCreatedOn() const { return m_createdOn; }
65 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
66 template <typename CreatedOnT = Aws::Utils::DateTime>
67 void SetCreatedOn(CreatedOnT&& value) {
68 m_createdOnHasBeenSet = true;
69 m_createdOn = std::forward<CreatedOnT>(value);
70 }
71 template <typename CreatedOnT = Aws::Utils::DateTime>
72 Session& WithCreatedOn(CreatedOnT&& value) {
73 SetCreatedOn(std::forward<CreatedOnT>(value));
74 return *this;
75 }
77
79
82 inline SessionStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(SessionStatus value) {
85 m_statusHasBeenSet = true;
86 m_status = value;
87 }
89 SetStatus(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
99 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
100 template <typename ErrorMessageT = Aws::String>
101 void SetErrorMessage(ErrorMessageT&& value) {
102 m_errorMessageHasBeenSet = true;
103 m_errorMessage = std::forward<ErrorMessageT>(value);
104 }
105 template <typename ErrorMessageT = Aws::String>
106 Session& WithErrorMessage(ErrorMessageT&& value) {
107 SetErrorMessage(std::forward<ErrorMessageT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
124 Session& WithDescription(DescriptionT&& value) {
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetRole() const { return m_role; }
136 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
137 template <typename RoleT = Aws::String>
138 void SetRole(RoleT&& value) {
139 m_roleHasBeenSet = true;
140 m_role = std::forward<RoleT>(value);
141 }
142 template <typename RoleT = Aws::String>
143 Session& WithRole(RoleT&& value) {
144 SetRole(std::forward<RoleT>(value));
145 return *this;
146 }
148
150
153 inline const SessionCommand& GetCommand() const { return m_command; }
154 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
155 template <typename CommandT = SessionCommand>
156 void SetCommand(CommandT&& value) {
157 m_commandHasBeenSet = true;
158 m_command = std::forward<CommandT>(value);
159 }
160 template <typename CommandT = SessionCommand>
161 Session& WithCommand(CommandT&& value) {
162 SetCommand(std::forward<CommandT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultArguments() const { return m_defaultArguments; }
172 inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; }
173 template <typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
174 void SetDefaultArguments(DefaultArgumentsT&& value) {
175 m_defaultArgumentsHasBeenSet = true;
176 m_defaultArguments = std::forward<DefaultArgumentsT>(value);
177 }
178 template <typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
179 Session& WithDefaultArguments(DefaultArgumentsT&& value) {
180 SetDefaultArguments(std::forward<DefaultArgumentsT>(value));
181 return *this;
182 }
183 template <typename DefaultArgumentsKeyT = Aws::String, typename DefaultArgumentsValueT = Aws::String>
184 Session& AddDefaultArguments(DefaultArgumentsKeyT&& key, DefaultArgumentsValueT&& value) {
185 m_defaultArgumentsHasBeenSet = true;
186 m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value));
187 return *this;
188 }
190
192
195 inline const ConnectionsList& GetConnections() const { return m_connections; }
196 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
197 template <typename ConnectionsT = ConnectionsList>
198 void SetConnections(ConnectionsT&& value) {
199 m_connectionsHasBeenSet = true;
200 m_connections = std::forward<ConnectionsT>(value);
201 }
202 template <typename ConnectionsT = ConnectionsList>
203 Session& WithConnections(ConnectionsT&& value) {
204 SetConnections(std::forward<ConnectionsT>(value));
205 return *this;
206 }
208
210
213 inline double GetProgress() const { return m_progress; }
214 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
215 inline void SetProgress(double value) {
216 m_progressHasBeenSet = true;
217 m_progress = value;
218 }
219 inline Session& WithProgress(double value) {
220 SetProgress(value);
221 return *this;
222 }
224
226
231 inline double GetMaxCapacity() const { return m_maxCapacity; }
232 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
233 inline void SetMaxCapacity(double value) {
234 m_maxCapacityHasBeenSet = true;
235 m_maxCapacity = value;
236 }
237 inline Session& WithMaxCapacity(double value) {
238 SetMaxCapacity(value);
239 return *this;
240 }
242
244
248 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
249 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
250 template <typename SecurityConfigurationT = Aws::String>
251 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
252 m_securityConfigurationHasBeenSet = true;
253 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
254 }
255 template <typename SecurityConfigurationT = Aws::String>
256 Session& WithSecurityConfiguration(SecurityConfigurationT&& value) {
257 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
258 return *this;
259 }
261
263
267 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
268 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
269 template <typename GlueVersionT = Aws::String>
270 void SetGlueVersion(GlueVersionT&& value) {
271 m_glueVersionHasBeenSet = true;
272 m_glueVersion = std::forward<GlueVersionT>(value);
273 }
274 template <typename GlueVersionT = Aws::String>
275 Session& WithGlueVersion(GlueVersionT&& value) {
276 SetGlueVersion(std::forward<GlueVersionT>(value));
277 return *this;
278 }
280
282
286 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
287 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
288 inline void SetNumberOfWorkers(int value) {
289 m_numberOfWorkersHasBeenSet = true;
290 m_numberOfWorkers = value;
291 }
292 inline Session& WithNumberOfWorkers(int value) {
293 SetNumberOfWorkers(value);
294 return *this;
295 }
297
299
305 inline WorkerType GetWorkerType() const { return m_workerType; }
306 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
307 inline void SetWorkerType(WorkerType value) {
308 m_workerTypeHasBeenSet = true;
309 m_workerType = value;
310 }
312 SetWorkerType(value);
313 return *this;
314 }
316
318
321 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
322 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
323 template <typename CompletedOnT = Aws::Utils::DateTime>
324 void SetCompletedOn(CompletedOnT&& value) {
325 m_completedOnHasBeenSet = true;
326 m_completedOn = std::forward<CompletedOnT>(value);
327 }
328 template <typename CompletedOnT = Aws::Utils::DateTime>
329 Session& WithCompletedOn(CompletedOnT&& value) {
330 SetCompletedOn(std::forward<CompletedOnT>(value));
331 return *this;
332 }
334
336
339 inline double GetExecutionTime() const { return m_executionTime; }
340 inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; }
341 inline void SetExecutionTime(double value) {
342 m_executionTimeHasBeenSet = true;
343 m_executionTime = value;
344 }
345 inline Session& WithExecutionTime(double value) {
346 SetExecutionTime(value);
347 return *this;
348 }
350
352
355 inline double GetDPUSeconds() const { return m_dPUSeconds; }
356 inline bool DPUSecondsHasBeenSet() const { return m_dPUSecondsHasBeenSet; }
357 inline void SetDPUSeconds(double value) {
358 m_dPUSecondsHasBeenSet = true;
359 m_dPUSeconds = value;
360 }
361 inline Session& WithDPUSeconds(double value) {
362 SetDPUSeconds(value);
363 return *this;
364 }
366
368
371 inline int GetIdleTimeout() const { return m_idleTimeout; }
372 inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; }
373 inline void SetIdleTimeout(int value) {
374 m_idleTimeoutHasBeenSet = true;
375 m_idleTimeout = value;
376 }
377 inline Session& WithIdleTimeout(int value) {
378 SetIdleTimeout(value);
379 return *this;
380 }
382
384
387 inline const Aws::String& GetProfileName() const { return m_profileName; }
388 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
389 template <typename ProfileNameT = Aws::String>
390 void SetProfileName(ProfileNameT&& value) {
391 m_profileNameHasBeenSet = true;
392 m_profileName = std::forward<ProfileNameT>(value);
393 }
394 template <typename ProfileNameT = Aws::String>
395 Session& WithProfileName(ProfileNameT&& value) {
396 SetProfileName(std::forward<ProfileNameT>(value));
397 return *this;
398 }
400
402
405 inline SessionType GetSessionType() const { return m_sessionType; }
406 inline bool SessionTypeHasBeenSet() const { return m_sessionTypeHasBeenSet; }
407 inline void SetSessionType(SessionType value) {
408 m_sessionTypeHasBeenSet = true;
409 m_sessionType = value;
410 }
412 SetSessionType(value);
413 return *this;
414 }
416 private:
417 Aws::String m_id;
418
419 Aws::Utils::DateTime m_createdOn{};
420
422
423 Aws::String m_errorMessage;
424
425 Aws::String m_description;
426
427 Aws::String m_role;
428
429 SessionCommand m_command;
430
431 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
432
433 ConnectionsList m_connections;
434
435 double m_progress{0.0};
436
437 double m_maxCapacity{0.0};
438
439 Aws::String m_securityConfiguration;
440
441 Aws::String m_glueVersion;
442
443 int m_numberOfWorkers{0};
444
445 WorkerType m_workerType{WorkerType::NOT_SET};
446
447 Aws::Utils::DateTime m_completedOn{};
448
449 double m_executionTime{0.0};
450
451 double m_dPUSeconds{0.0};
452
453 int m_idleTimeout{0};
454
455 Aws::String m_profileName;
456
457 SessionType m_sessionType{SessionType::NOT_SET};
458 bool m_idHasBeenSet = false;
459 bool m_createdOnHasBeenSet = false;
460 bool m_statusHasBeenSet = false;
461 bool m_errorMessageHasBeenSet = false;
462 bool m_descriptionHasBeenSet = false;
463 bool m_roleHasBeenSet = false;
464 bool m_commandHasBeenSet = false;
465 bool m_defaultArgumentsHasBeenSet = false;
466 bool m_connectionsHasBeenSet = false;
467 bool m_progressHasBeenSet = false;
468 bool m_maxCapacityHasBeenSet = false;
469 bool m_securityConfigurationHasBeenSet = false;
470 bool m_glueVersionHasBeenSet = false;
471 bool m_numberOfWorkersHasBeenSet = false;
472 bool m_workerTypeHasBeenSet = false;
473 bool m_completedOnHasBeenSet = false;
474 bool m_executionTimeHasBeenSet = false;
475 bool m_dPUSecondsHasBeenSet = false;
476 bool m_idleTimeoutHasBeenSet = false;
477 bool m_profileNameHasBeenSet = false;
478 bool m_sessionTypeHasBeenSet = false;
479};
480
481} // namespace Model
482} // namespace Glue
483} // namespace Aws
bool ProfileNameHasBeenSet() const
Definition Session.h:388
AWS_GLUE_API Session()=default
bool DefaultArgumentsHasBeenSet() const
Definition Session.h:172
void SetIdleTimeout(int value)
Definition Session.h:373
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerType GetWorkerType() const
Definition Session.h:305
const Aws::String & GetSecurityConfiguration() const
Definition Session.h:248
bool ConnectionsHasBeenSet() const
Definition Session.h:196
bool NumberOfWorkersHasBeenSet() const
Definition Session.h:287
void SetDefaultArguments(DefaultArgumentsT &&value)
Definition Session.h:174
bool ErrorMessageHasBeenSet() const
Definition Session.h:99
bool CommandHasBeenSet() const
Definition Session.h:154
void SetStatus(SessionStatus value)
Definition Session.h:84
bool CompletedOnHasBeenSet() const
Definition Session.h:322
int GetIdleTimeout() const
Definition Session.h:371
Session & WithWorkerType(WorkerType value)
Definition Session.h:311
double GetExecutionTime() const
Definition Session.h:339
void SetCommand(CommandT &&value)
Definition Session.h:156
Session & AddDefaultArguments(DefaultArgumentsKeyT &&key, DefaultArgumentsValueT &&value)
Definition Session.h:184
void SetConnections(ConnectionsT &&value)
Definition Session.h:198
Session & WithIdleTimeout(int value)
Definition Session.h:377
const Aws::String & GetId() const
Definition Session.h:46
bool SessionTypeHasBeenSet() const
Definition Session.h:406
Session & WithCreatedOn(CreatedOnT &&value)
Definition Session.h:72
void SetCreatedOn(CreatedOnT &&value)
Definition Session.h:67
void SetExecutionTime(double value)
Definition Session.h:341
const Aws::String & GetProfileName() const
Definition Session.h:387
void SetMaxCapacity(double value)
Definition Session.h:233
double GetMaxCapacity() const
Definition Session.h:231
Session & WithDefaultArguments(DefaultArgumentsT &&value)
Definition Session.h:179
bool RoleHasBeenSet() const
Definition Session.h:136
const ConnectionsList & GetConnections() const
Definition Session.h:195
void SetSecurityConfiguration(SecurityConfigurationT &&value)
Definition Session.h:251
const Aws::String & GetDescription() const
Definition Session.h:116
bool StatusHasBeenSet() const
Definition Session.h:83
Session & WithGlueVersion(GlueVersionT &&value)
Definition Session.h:275
void SetDPUSeconds(double value)
Definition Session.h:357
void SetErrorMessage(ErrorMessageT &&value)
Definition Session.h:101
const Aws::String & GetRole() const
Definition Session.h:135
const Aws::Utils::DateTime & GetCompletedOn() const
Definition Session.h:321
bool DPUSecondsHasBeenSet() const
Definition Session.h:356
void SetProgress(double value)
Definition Session.h:215
Session & WithConnections(ConnectionsT &&value)
Definition Session.h:203
void SetRole(RoleT &&value)
Definition Session.h:138
double GetProgress() const
Definition Session.h:213
Session & WithNumberOfWorkers(int value)
Definition Session.h:292
Session & WithDPUSeconds(double value)
Definition Session.h:361
Session & WithStatus(SessionStatus value)
Definition Session.h:88
const SessionCommand & GetCommand() const
Definition Session.h:153
Session & WithProfileName(ProfileNameT &&value)
Definition Session.h:395
double GetDPUSeconds() const
Definition Session.h:355
void SetGlueVersion(GlueVersionT &&value)
Definition Session.h:270
bool DescriptionHasBeenSet() const
Definition Session.h:117
int GetNumberOfWorkers() const
Definition Session.h:286
void SetWorkerType(WorkerType value)
Definition Session.h:307
Session & WithSessionType(SessionType value)
Definition Session.h:411
void SetSessionType(SessionType value)
Definition Session.h:407
const Aws::String & GetErrorMessage() const
Definition Session.h:98
bool ExecutionTimeHasBeenSet() const
Definition Session.h:340
bool MaxCapacityHasBeenSet() const
Definition Session.h:232
SessionType GetSessionType() const
Definition Session.h:405
bool CreatedOnHasBeenSet() const
Definition Session.h:65
Session & WithExecutionTime(double value)
Definition Session.h:345
void SetProfileName(ProfileNameT &&value)
Definition Session.h:390
Session & WithMaxCapacity(double value)
Definition Session.h:237
bool ProgressHasBeenSet() const
Definition Session.h:214
bool SecurityConfigurationHasBeenSet() const
Definition Session.h:249
SessionStatus GetStatus() const
Definition Session.h:82
void SetNumberOfWorkers(int value)
Definition Session.h:288
Session & WithDescription(DescriptionT &&value)
Definition Session.h:124
Session & WithCommand(CommandT &&value)
Definition Session.h:161
Session & WithProgress(double value)
Definition Session.h:219
const Aws::Utils::DateTime & GetCreatedOn() const
Definition Session.h:64
const Aws::Map< Aws::String, Aws::String > & GetDefaultArguments() const
Definition Session.h:171
bool WorkerTypeHasBeenSet() const
Definition Session.h:306
void SetId(IdT &&value)
Definition Session.h:49
Session & WithId(IdT &&value)
Definition Session.h:54
void SetCompletedOn(CompletedOnT &&value)
Definition Session.h:324
Session & WithSecurityConfiguration(SecurityConfigurationT &&value)
Definition Session.h:256
Session & WithCompletedOn(CompletedOnT &&value)
Definition Session.h:329
bool IdleTimeoutHasBeenSet() const
Definition Session.h:372
const Aws::String & GetGlueVersion() const
Definition Session.h:267
void SetDescription(DescriptionT &&value)
Definition Session.h:119
bool IdHasBeenSet() const
Definition Session.h:47
AWS_GLUE_API Session(Aws::Utils::Json::JsonView jsonValue)
Session & WithErrorMessage(ErrorMessageT &&value)
Definition Session.h:106
AWS_GLUE_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GlueVersionHasBeenSet() const
Definition Session.h:268
Session & WithRole(RoleT &&value)
Definition Session.h:143
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue