AWS SDK for C++

AWS SDK for C++ Version 1.11.945

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
312 inline WorkerType GetWorkerType() const { return m_workerType; }
313 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
314 inline void SetWorkerType(WorkerType value) {
315 m_workerTypeHasBeenSet = true;
316 m_workerType = value;
317 }
319 SetWorkerType(value);
320 return *this;
321 }
323
325
328 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
329 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
330 template <typename CompletedOnT = Aws::Utils::DateTime>
331 void SetCompletedOn(CompletedOnT&& value) {
332 m_completedOnHasBeenSet = true;
333 m_completedOn = std::forward<CompletedOnT>(value);
334 }
335 template <typename CompletedOnT = Aws::Utils::DateTime>
336 Session& WithCompletedOn(CompletedOnT&& value) {
337 SetCompletedOn(std::forward<CompletedOnT>(value));
338 return *this;
339 }
341
343
346 inline double GetExecutionTime() const { return m_executionTime; }
347 inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; }
348 inline void SetExecutionTime(double value) {
349 m_executionTimeHasBeenSet = true;
350 m_executionTime = value;
351 }
352 inline Session& WithExecutionTime(double value) {
353 SetExecutionTime(value);
354 return *this;
355 }
357
359
362 inline double GetDPUSeconds() const { return m_dPUSeconds; }
363 inline bool DPUSecondsHasBeenSet() const { return m_dPUSecondsHasBeenSet; }
364 inline void SetDPUSeconds(double value) {
365 m_dPUSecondsHasBeenSet = true;
366 m_dPUSeconds = value;
367 }
368 inline Session& WithDPUSeconds(double value) {
369 SetDPUSeconds(value);
370 return *this;
371 }
373
375
378 inline int GetIdleTimeout() const { return m_idleTimeout; }
379 inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; }
380 inline void SetIdleTimeout(int value) {
381 m_idleTimeoutHasBeenSet = true;
382 m_idleTimeout = value;
383 }
384 inline Session& WithIdleTimeout(int value) {
385 SetIdleTimeout(value);
386 return *this;
387 }
389
391
394 inline const Aws::String& GetProfileName() const { return m_profileName; }
395 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
396 template <typename ProfileNameT = Aws::String>
397 void SetProfileName(ProfileNameT&& value) {
398 m_profileNameHasBeenSet = true;
399 m_profileName = std::forward<ProfileNameT>(value);
400 }
401 template <typename ProfileNameT = Aws::String>
402 Session& WithProfileName(ProfileNameT&& value) {
403 SetProfileName(std::forward<ProfileNameT>(value));
404 return *this;
405 }
407
409
412 inline SessionType GetSessionType() const { return m_sessionType; }
413 inline bool SessionTypeHasBeenSet() const { return m_sessionTypeHasBeenSet; }
414 inline void SetSessionType(SessionType value) {
415 m_sessionTypeHasBeenSet = true;
416 m_sessionType = value;
417 }
419 SetSessionType(value);
420 return *this;
421 }
423 private:
424 Aws::String m_id;
425
426 Aws::Utils::DateTime m_createdOn{};
427
429
430 Aws::String m_errorMessage;
431
432 Aws::String m_description;
433
434 Aws::String m_role;
435
436 SessionCommand m_command;
437
438 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
439
440 ConnectionsList m_connections;
441
442 double m_progress{0.0};
443
444 double m_maxCapacity{0.0};
445
446 Aws::String m_securityConfiguration;
447
448 Aws::String m_glueVersion;
449
450 int m_numberOfWorkers{0};
451
452 WorkerType m_workerType{WorkerType::NOT_SET};
453
454 Aws::Utils::DateTime m_completedOn{};
455
456 double m_executionTime{0.0};
457
458 double m_dPUSeconds{0.0};
459
460 int m_idleTimeout{0};
461
462 Aws::String m_profileName;
463
464 SessionType m_sessionType{SessionType::NOT_SET};
465 bool m_idHasBeenSet = false;
466 bool m_createdOnHasBeenSet = false;
467 bool m_statusHasBeenSet = false;
468 bool m_errorMessageHasBeenSet = false;
469 bool m_descriptionHasBeenSet = false;
470 bool m_roleHasBeenSet = false;
471 bool m_commandHasBeenSet = false;
472 bool m_defaultArgumentsHasBeenSet = false;
473 bool m_connectionsHasBeenSet = false;
474 bool m_progressHasBeenSet = false;
475 bool m_maxCapacityHasBeenSet = false;
476 bool m_securityConfigurationHasBeenSet = false;
477 bool m_glueVersionHasBeenSet = false;
478 bool m_numberOfWorkersHasBeenSet = false;
479 bool m_workerTypeHasBeenSet = false;
480 bool m_completedOnHasBeenSet = false;
481 bool m_executionTimeHasBeenSet = false;
482 bool m_dPUSecondsHasBeenSet = false;
483 bool m_idleTimeoutHasBeenSet = false;
484 bool m_profileNameHasBeenSet = false;
485 bool m_sessionTypeHasBeenSet = false;
486};
487
488} // namespace Model
489} // namespace Glue
490} // namespace Aws
bool ProfileNameHasBeenSet() const
Definition Session.h:395
AWS_GLUE_API Session()=default
bool DefaultArgumentsHasBeenSet() const
Definition Session.h:172
void SetIdleTimeout(int value)
Definition Session.h:380
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerType GetWorkerType() const
Definition Session.h:312
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:329
int GetIdleTimeout() const
Definition Session.h:378
Session & WithWorkerType(WorkerType value)
Definition Session.h:318
double GetExecutionTime() const
Definition Session.h:346
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:384
const Aws::String & GetId() const
Definition Session.h:46
bool SessionTypeHasBeenSet() const
Definition Session.h:413
Session & WithCreatedOn(CreatedOnT &&value)
Definition Session.h:72
void SetCreatedOn(CreatedOnT &&value)
Definition Session.h:67
void SetExecutionTime(double value)
Definition Session.h:348
const Aws::String & GetProfileName() const
Definition Session.h:394
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:364
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:328
bool DPUSecondsHasBeenSet() const
Definition Session.h:363
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:368
Session & WithStatus(SessionStatus value)
Definition Session.h:88
const SessionCommand & GetCommand() const
Definition Session.h:153
Session & WithProfileName(ProfileNameT &&value)
Definition Session.h:402
double GetDPUSeconds() const
Definition Session.h:362
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:314
Session & WithSessionType(SessionType value)
Definition Session.h:418
void SetSessionType(SessionType value)
Definition Session.h:414
const Aws::String & GetErrorMessage() const
Definition Session.h:98
bool ExecutionTimeHasBeenSet() const
Definition Session.h:347
bool MaxCapacityHasBeenSet() const
Definition Session.h:232
SessionType GetSessionType() const
Definition Session.h:412
bool CreatedOnHasBeenSet() const
Definition Session.h:65
Session & WithExecutionTime(double value)
Definition Session.h:352
void SetProfileName(ProfileNameT &&value)
Definition Session.h:397
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:313
void SetId(IdT &&value)
Definition Session.h:49
Session & WithId(IdT &&value)
Definition Session.h:54
void SetCompletedOn(CompletedOnT &&value)
Definition Session.h:331
Session & WithSecurityConfiguration(SecurityConfigurationT &&value)
Definition Session.h:256
Session & WithCompletedOn(CompletedOnT &&value)
Definition Session.h:336
bool IdleTimeoutHasBeenSet() const
Definition Session.h:379
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