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>
48 template <
typename IdT = Aws::String>
50 m_idHasBeenSet =
true;
51 m_id = std::forward<IdT>(value);
53 template <
typename IdT = Aws::String>
55 SetId(std::forward<IdT>(value));
66 template <
typename CreatedOnT = Aws::Utils::DateTime>
68 m_createdOnHasBeenSet =
true;
69 m_createdOn = std::forward<CreatedOnT>(value);
71 template <
typename CreatedOnT = Aws::Utils::DateTime>
85 m_statusHasBeenSet =
true;
100 template <
typename ErrorMessageT = Aws::String>
102 m_errorMessageHasBeenSet =
true;
103 m_errorMessage = std::forward<ErrorMessageT>(value);
105 template <
typename ErrorMessageT = Aws::String>
118 template <
typename DescriptionT = Aws::String>
120 m_descriptionHasBeenSet =
true;
121 m_description = std::forward<DescriptionT>(value);
123 template <
typename DescriptionT = Aws::String>
137 template <
typename RoleT = Aws::String>
139 m_roleHasBeenSet =
true;
140 m_role = std::forward<RoleT>(value);
142 template <
typename RoleT = Aws::String>
144 SetRole(std::forward<RoleT>(value));
155 template <
typename CommandT = SessionCommand>
157 m_commandHasBeenSet =
true;
158 m_command = std::forward<CommandT>(value);
160 template <
typename CommandT = SessionCommand>
173 template <
typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
175 m_defaultArgumentsHasBeenSet =
true;
176 m_defaultArguments = std::forward<DefaultArgumentsT>(value);
178 template <
typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
183 template <
typename DefaultArgumentsKeyT = Aws::String,
typename DefaultArgumentsValueT = Aws::String>
185 m_defaultArgumentsHasBeenSet =
true;
186 m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value));
197 template <
typename ConnectionsT = ConnectionsList>
199 m_connectionsHasBeenSet =
true;
200 m_connections = std::forward<ConnectionsT>(value);
202 template <
typename ConnectionsT = ConnectionsList>
216 m_progressHasBeenSet =
true;
234 m_maxCapacityHasBeenSet =
true;
235 m_maxCapacity = value;
250 template <
typename SecurityConfigurationT = Aws::String>
252 m_securityConfigurationHasBeenSet =
true;
253 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
255 template <
typename SecurityConfigurationT = Aws::String>
269 template <
typename GlueVersionT = Aws::String>
271 m_glueVersionHasBeenSet =
true;
272 m_glueVersion = std::forward<GlueVersionT>(value);
274 template <
typename GlueVersionT = Aws::String>
289 m_numberOfWorkersHasBeenSet =
true;
290 m_numberOfWorkers = value;
308 m_workerTypeHasBeenSet =
true;
309 m_workerType = value;
323 template <
typename CompletedOnT = Aws::Utils::DateTime>
325 m_completedOnHasBeenSet =
true;
326 m_completedOn = std::forward<CompletedOnT>(value);
328 template <
typename CompletedOnT = Aws::Utils::DateTime>
342 m_executionTimeHasBeenSet =
true;
343 m_executionTime = value;
358 m_dPUSecondsHasBeenSet =
true;
359 m_dPUSeconds = value;
374 m_idleTimeoutHasBeenSet =
true;
375 m_idleTimeout = value;
389 template <
typename ProfileNameT = Aws::String>
391 m_profileNameHasBeenSet =
true;
392 m_profileName = std::forward<ProfileNameT>(value);
394 template <
typename ProfileNameT = Aws::String>
408 m_sessionTypeHasBeenSet =
true;
409 m_sessionType = value;
429 SessionCommand m_command;
433 ConnectionsList m_connections;
435 double m_progress{0.0};
437 double m_maxCapacity{0.0};
443 int m_numberOfWorkers{0};
449 double m_executionTime{0.0};
451 double m_dPUSeconds{0.0};
453 int m_idleTimeout{0};
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;
bool ProfileNameHasBeenSet() const
AWS_GLUE_API Session()=default
bool DefaultArgumentsHasBeenSet() const
void SetIdleTimeout(int value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerType GetWorkerType() const
const Aws::String & GetSecurityConfiguration() const
bool ConnectionsHasBeenSet() const
bool NumberOfWorkersHasBeenSet() const
void SetDefaultArguments(DefaultArgumentsT &&value)
bool ErrorMessageHasBeenSet() const
bool CommandHasBeenSet() const
void SetStatus(SessionStatus value)
bool CompletedOnHasBeenSet() const
int GetIdleTimeout() const
Session & WithWorkerType(WorkerType value)
double GetExecutionTime() const
void SetCommand(CommandT &&value)
Session & AddDefaultArguments(DefaultArgumentsKeyT &&key, DefaultArgumentsValueT &&value)
void SetConnections(ConnectionsT &&value)
Session & WithIdleTimeout(int value)
const Aws::String & GetId() const
bool SessionTypeHasBeenSet() const
Session & WithCreatedOn(CreatedOnT &&value)
void SetCreatedOn(CreatedOnT &&value)
void SetExecutionTime(double value)
const Aws::String & GetProfileName() const
void SetMaxCapacity(double value)
double GetMaxCapacity() const
Session & WithDefaultArguments(DefaultArgumentsT &&value)
bool RoleHasBeenSet() const
const ConnectionsList & GetConnections() const
void SetSecurityConfiguration(SecurityConfigurationT &&value)
const Aws::String & GetDescription() const
bool StatusHasBeenSet() const
Session & WithGlueVersion(GlueVersionT &&value)
void SetDPUSeconds(double value)
void SetErrorMessage(ErrorMessageT &&value)
const Aws::String & GetRole() const
const Aws::Utils::DateTime & GetCompletedOn() const
bool DPUSecondsHasBeenSet() const
void SetProgress(double value)
Session & WithConnections(ConnectionsT &&value)
void SetRole(RoleT &&value)
double GetProgress() const
Session & WithNumberOfWorkers(int value)
Session & WithDPUSeconds(double value)
Session & WithStatus(SessionStatus value)
const SessionCommand & GetCommand() const
Session & WithProfileName(ProfileNameT &&value)
double GetDPUSeconds() const
void SetGlueVersion(GlueVersionT &&value)
bool DescriptionHasBeenSet() const
int GetNumberOfWorkers() const
void SetWorkerType(WorkerType value)
Session & WithSessionType(SessionType value)
void SetSessionType(SessionType value)
const Aws::String & GetErrorMessage() const
bool ExecutionTimeHasBeenSet() const
bool MaxCapacityHasBeenSet() const
SessionType GetSessionType() const
bool CreatedOnHasBeenSet() const
Session & WithExecutionTime(double value)
void SetProfileName(ProfileNameT &&value)
Session & WithMaxCapacity(double value)
bool ProgressHasBeenSet() const
bool SecurityConfigurationHasBeenSet() const
SessionStatus GetStatus() const
void SetNumberOfWorkers(int value)
Session & WithDescription(DescriptionT &&value)
Session & WithCommand(CommandT &&value)
Session & WithProgress(double value)
const Aws::Utils::DateTime & GetCreatedOn() const
const Aws::Map< Aws::String, Aws::String > & GetDefaultArguments() const
bool WorkerTypeHasBeenSet() const
Session & WithId(IdT &&value)
void SetCompletedOn(CompletedOnT &&value)
Session & WithSecurityConfiguration(SecurityConfigurationT &&value)
Session & WithCompletedOn(CompletedOnT &&value)
bool IdleTimeoutHasBeenSet() const
const Aws::String & GetGlueVersion() const
void SetDescription(DescriptionT &&value)
bool IdHasBeenSet() const
AWS_GLUE_API Session(Aws::Utils::Json::JsonView jsonValue)
Session & WithErrorMessage(ErrorMessageT &&value)
AWS_GLUE_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GlueVersionHasBeenSet() const
Session & WithRole(RoleT &&value)
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