7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/glue/model/SessionStatus.h>
11#include <aws/glue/model/SessionCommand.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/glue/model/ConnectionsList.h>
14#include <aws/glue/model/WorkerType.h>
53 template<
typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
55 template<
typename IdT = Aws::String>
65 template<
typename CreatedOnT = Aws::Utils::DateTime>
66 void SetCreatedOn(CreatedOnT&& value) { m_createdOnHasBeenSet =
true; m_createdOn = std::forward<CreatedOnT>(value); }
67 template<
typename CreatedOnT = Aws::Utils::DateTime>
87 template<
typename ErrorMessageT = Aws::String>
88 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet =
true; m_errorMessage = std::forward<ErrorMessageT>(value); }
89 template<
typename ErrorMessageT = Aws::String>
99 template<
typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
101 template<
typename DescriptionT = Aws::String>
112 template<
typename RoleT = Aws::String>
113 void SetRole(RoleT&& value) { m_roleHasBeenSet =
true; m_role = std::forward<RoleT>(value); }
114 template<
typename RoleT = Aws::String>
124 template<
typename CommandT = SessionCommand>
125 void SetCommand(CommandT&& value) { m_commandHasBeenSet =
true; m_command = std::forward<CommandT>(value); }
126 template<
typename CommandT = SessionCommand>
136 template<
typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
137 void SetDefaultArguments(DefaultArgumentsT&& value) { m_defaultArgumentsHasBeenSet =
true; m_defaultArguments = std::forward<DefaultArgumentsT>(value); }
138 template<
typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
140 template<
typename DefaultArgumentsKeyT = Aws::String,
typename DefaultArgumentsValueT = Aws::String>
142 m_defaultArgumentsHasBeenSet =
true; m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value));
return *
this;
152 template<
typename ConnectionsT = ConnectionsList>
153 void SetConnections(ConnectionsT&& value) { m_connectionsHasBeenSet =
true; m_connections = std::forward<ConnectionsT>(value); }
154 template<
typename ConnectionsT = ConnectionsList>
164 inline void SetProgress(
double value) { m_progressHasBeenSet =
true; m_progress = value; }
176 inline void SetMaxCapacity(
double value) { m_maxCapacityHasBeenSet =
true; m_maxCapacity = value; }
187 template<
typename SecurityConfigurationT = Aws::String>
188 void SetSecurityConfiguration(SecurityConfigurationT&& value) { m_securityConfigurationHasBeenSet =
true; m_securityConfiguration = std::forward<SecurityConfigurationT>(value); }
189 template<
typename SecurityConfigurationT = Aws::String>
200 template<
typename GlueVersionT = Aws::String>
201 void SetGlueVersion(GlueVersionT&& value) { m_glueVersionHasBeenSet =
true; m_glueVersion = std::forward<GlueVersionT>(value); }
202 template<
typename GlueVersionT = Aws::String>
213 inline void SetNumberOfWorkers(
int value) { m_numberOfWorkersHasBeenSet =
true; m_numberOfWorkers = value; }
236 template<
typename CompletedOnT = Aws::Utils::DateTime>
237 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet =
true; m_completedOn = std::forward<CompletedOnT>(value); }
238 template<
typename CompletedOnT = Aws::Utils::DateTime>
248 inline void SetExecutionTime(
double value) { m_executionTimeHasBeenSet =
true; m_executionTime = value; }
258 inline void SetDPUSeconds(
double value) { m_dPUSecondsHasBeenSet =
true; m_dPUSeconds = value; }
268 inline void SetIdleTimeout(
int value) { m_idleTimeoutHasBeenSet =
true; m_idleTimeout = value; }
278 template<
typename ProfileNameT = Aws::String>
279 void SetProfileName(ProfileNameT&& value) { m_profileNameHasBeenSet =
true; m_profileName = std::forward<ProfileNameT>(value); }
280 template<
typename ProfileNameT = Aws::String>
286 bool m_idHasBeenSet =
false;
289 bool m_createdOnHasBeenSet =
false;
292 bool m_statusHasBeenSet =
false;
295 bool m_errorMessageHasBeenSet =
false;
298 bool m_descriptionHasBeenSet =
false;
301 bool m_roleHasBeenSet =
false;
303 SessionCommand m_command;
304 bool m_commandHasBeenSet =
false;
307 bool m_defaultArgumentsHasBeenSet =
false;
309 ConnectionsList m_connections;
310 bool m_connectionsHasBeenSet =
false;
312 double m_progress{0.0};
313 bool m_progressHasBeenSet =
false;
315 double m_maxCapacity{0.0};
316 bool m_maxCapacityHasBeenSet =
false;
319 bool m_securityConfigurationHasBeenSet =
false;
322 bool m_glueVersionHasBeenSet =
false;
324 int m_numberOfWorkers{0};
325 bool m_numberOfWorkersHasBeenSet =
false;
328 bool m_workerTypeHasBeenSet =
false;
331 bool m_completedOnHasBeenSet =
false;
333 double m_executionTime{0.0};
334 bool m_executionTimeHasBeenSet =
false;
336 double m_dPUSeconds{0.0};
337 bool m_dPUSecondsHasBeenSet =
false;
339 int m_idleTimeout{0};
340 bool m_idleTimeoutHasBeenSet =
false;
343 bool m_profileNameHasBeenSet =
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
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)
const Aws::String & GetErrorMessage() const
bool ExecutionTimeHasBeenSet() const
bool MaxCapacityHasBeenSet() 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