7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/JobMode.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/glue/model/JobRunState.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/glue/model/WorkerType.h>
15#include <aws/glue/model/NotificationProperty.h>
16#include <aws/glue/model/ExecutionClass.h>
17#include <aws/glue/model/Predecessor.h>
55 template<
typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
57 template<
typename IdT = Aws::String>
67 inline void SetAttempt(
int value) { m_attemptHasBeenSet =
true; m_attempt = value; }
78 template<
typename PreviousRunIdT = Aws::String>
79 void SetPreviousRunId(PreviousRunIdT&& value) { m_previousRunIdHasBeenSet =
true; m_previousRunId = std::forward<PreviousRunIdT>(value); }
80 template<
typename PreviousRunIdT = Aws::String>
90 template<
typename TriggerNameT = Aws::String>
91 void SetTriggerName(TriggerNameT&& value) { m_triggerNameHasBeenSet =
true; m_triggerName = std::forward<TriggerNameT>(value); }
92 template<
typename TriggerNameT = Aws::String>
102 template<
typename JobNameT = Aws::String>
103 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet =
true; m_jobName = std::forward<JobNameT>(value); }
104 template<
typename JobNameT = Aws::String>
142 template<
typename StartedOnT = Aws::Utils::DateTime>
143 void SetStartedOn(StartedOnT&& value) { m_startedOnHasBeenSet =
true; m_startedOn = std::forward<StartedOnT>(value); }
144 template<
typename StartedOnT = Aws::Utils::DateTime>
154 template<
typename LastModifiedOnT = Aws::Utils::DateTime>
155 void SetLastModifiedOn(LastModifiedOnT&& value) { m_lastModifiedOnHasBeenSet =
true; m_lastModifiedOn = std::forward<LastModifiedOnT>(value); }
156 template<
typename LastModifiedOnT = Aws::Utils::DateTime>
166 template<
typename CompletedOnT = Aws::Utils::DateTime>
167 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet =
true; m_completedOn = std::forward<CompletedOnT>(value); }
168 template<
typename CompletedOnT = Aws::Utils::DateTime>
208 template<
typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
209 void SetArguments(ArgumentsT&& value) { m_argumentsHasBeenSet =
true; m_arguments = std::forward<ArgumentsT>(value); }
210 template<
typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
212 template<
typename ArgumentsKeyT = Aws::String,
typename ArgumentsValueT = Aws::String>
214 m_argumentsHasBeenSet =
true; m_arguments.emplace(std::forward<ArgumentsKeyT>(key), std::forward<ArgumentsValueT>(value));
return *
this;
224 template<
typename ErrorMessageT = Aws::String>
225 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet =
true; m_errorMessage = std::forward<ErrorMessageT>(value); }
226 template<
typename ErrorMessageT = Aws::String>
236 template<
typename PredecessorRunsT = Aws::Vector<Predecessor>>
237 void SetPredecessorRuns(PredecessorRunsT&& value) { m_predecessorRunsHasBeenSet =
true; m_predecessorRuns = std::forward<PredecessorRunsT>(value); }
238 template<
typename PredecessorRunsT = Aws::Vector<Predecessor>>
240 template<
typename PredecessorRunsT = Predecessor>
241 JobRun&
AddPredecessorRuns(PredecessorRunsT&& value) { m_predecessorRunsHasBeenSet =
true; m_predecessorRuns.emplace_back(std::forward<PredecessorRunsT>(value));
return *
this; }
250 inline void SetExecutionTime(
int value) { m_executionTimeHasBeenSet =
true; m_executionTime = value; }
270 inline void SetTimeout(
int value) { m_timeoutHasBeenSet =
true; m_timeout = value; }
297 inline void SetMaxCapacity(
double value) { m_maxCapacityHasBeenSet =
true; m_maxCapacity = value; }
348 inline void SetNumberOfWorkers(
int value) { m_numberOfWorkersHasBeenSet =
true; m_numberOfWorkers = value; }
359 template<
typename SecurityConfigurationT = Aws::String>
360 void SetSecurityConfiguration(SecurityConfigurationT&& value) { m_securityConfigurationHasBeenSet =
true; m_securityConfiguration = std::forward<SecurityConfigurationT>(value); }
361 template<
typename SecurityConfigurationT = Aws::String>
377 template<
typename LogGroupNameT = Aws::String>
378 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet =
true; m_logGroupName = std::forward<LogGroupNameT>(value); }
379 template<
typename LogGroupNameT = Aws::String>
389 template<
typename NotificationPropertyT = NotificationProperty>
390 void SetNotificationProperty(NotificationPropertyT&& value) { m_notificationPropertyHasBeenSet =
true; m_notificationProperty = std::forward<NotificationPropertyT>(value); }
391 template<
typename NotificationPropertyT = NotificationProperty>
411 template<
typename GlueVersionT = Aws::String>
412 void SetGlueVersion(GlueVersionT&& value) { m_glueVersionHasBeenSet =
true; m_glueVersion = std::forward<GlueVersionT>(value); }
413 template<
typename GlueVersionT = Aws::String>
432 inline void SetDPUSeconds(
double value) { m_dPUSecondsHasBeenSet =
true; m_dPUSeconds = value; }
463 template<
typename Ma
intenanceWindowT = Aws::String>
464 void SetMaintenanceWindow(MaintenanceWindowT&& value) { m_maintenanceWindowHasBeenSet =
true; m_maintenanceWindow = std::forward<MaintenanceWindowT>(value); }
465 template<
typename Ma
intenanceWindowT = Aws::String>
475 template<
typename ProfileNameT = Aws::String>
476 void SetProfileName(ProfileNameT&& value) { m_profileNameHasBeenSet =
true; m_profileName = std::forward<ProfileNameT>(value); }
477 template<
typename ProfileNameT = Aws::String>
490 template<
typename StateDetailT = Aws::String>
491 void SetStateDetail(StateDetailT&& value) { m_stateDetailHasBeenSet =
true; m_stateDetail = std::forward<StateDetailT>(value); }
492 template<
typename StateDetailT = Aws::String>
498 bool m_idHasBeenSet =
false;
501 bool m_attemptHasBeenSet =
false;
504 bool m_previousRunIdHasBeenSet =
false;
507 bool m_triggerNameHasBeenSet =
false;
510 bool m_jobNameHasBeenSet =
false;
513 bool m_jobModeHasBeenSet =
false;
515 bool m_jobRunQueuingEnabled{
false};
516 bool m_jobRunQueuingEnabledHasBeenSet =
false;
519 bool m_startedOnHasBeenSet =
false;
522 bool m_lastModifiedOnHasBeenSet =
false;
525 bool m_completedOnHasBeenSet =
false;
528 bool m_jobRunStateHasBeenSet =
false;
531 bool m_argumentsHasBeenSet =
false;
534 bool m_errorMessageHasBeenSet =
false;
537 bool m_predecessorRunsHasBeenSet =
false;
539 int m_executionTime{0};
540 bool m_executionTimeHasBeenSet =
false;
543 bool m_timeoutHasBeenSet =
false;
545 double m_maxCapacity{0.0};
546 bool m_maxCapacityHasBeenSet =
false;
549 bool m_workerTypeHasBeenSet =
false;
551 int m_numberOfWorkers{0};
552 bool m_numberOfWorkersHasBeenSet =
false;
555 bool m_securityConfigurationHasBeenSet =
false;
558 bool m_logGroupNameHasBeenSet =
false;
560 NotificationProperty m_notificationProperty;
561 bool m_notificationPropertyHasBeenSet =
false;
564 bool m_glueVersionHasBeenSet =
false;
566 double m_dPUSeconds{0.0};
567 bool m_dPUSecondsHasBeenSet =
false;
570 bool m_executionClassHasBeenSet =
false;
573 bool m_maintenanceWindowHasBeenSet =
false;
576 bool m_profileNameHasBeenSet =
false;
579 bool m_stateDetailHasBeenSet =
false;
JobRun & WithJobRunState(JobRunState value)
bool ExecutionClassHasBeenSet() const
bool ArgumentsHasBeenSet() const
double GetDPUSeconds() const
void SetPredecessorRuns(PredecessorRunsT &&value)
bool ExecutionTimeHasBeenSet() const
JobRun & WithLastModifiedOn(LastModifiedOnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetArguments() const
JobRun & WithWorkerType(WorkerType value)
bool ProfileNameHasBeenSet() const
JobRun & WithDPUSeconds(double value)
bool IdHasBeenSet() const
const Aws::String & GetJobName() const
JobRun & WithPredecessorRuns(PredecessorRunsT &&value)
void SetExecutionClass(ExecutionClass value)
bool StateDetailHasBeenSet() const
void SetJobRunQueuingEnabled(bool value)
JobRun & WithGlueVersion(GlueVersionT &&value)
bool PredecessorRunsHasBeenSet() const
const Aws::Vector< Predecessor > & GetPredecessorRuns() const
void SetTimeout(int value)
JobRunState GetJobRunState() const
bool JobNameHasBeenSet() const
void SetNumberOfWorkers(int value)
bool JobRunQueuingEnabledHasBeenSet() const
JobRun & WithMaintenanceWindow(MaintenanceWindowT &&value)
JobRun & WithCompletedOn(CompletedOnT &&value)
JobMode GetJobMode() const
JobRun & WithSecurityConfiguration(SecurityConfigurationT &&value)
JobRun & WithTriggerName(TriggerNameT &&value)
JobRun & WithNotificationProperty(NotificationPropertyT &&value)
const Aws::String & GetMaintenanceWindow() const
void SetErrorMessage(ErrorMessageT &&value)
int GetExecutionTime() const
void SetJobMode(JobMode value)
bool JobModeHasBeenSet() const
void SetDPUSeconds(double value)
bool WorkerTypeHasBeenSet() const
bool MaxCapacityHasBeenSet() const
JobRun & WithStartedOn(StartedOnT &&value)
void SetProfileName(ProfileNameT &&value)
bool NumberOfWorkersHasBeenSet() const
void SetMaintenanceWindow(MaintenanceWindowT &&value)
JobRun & WithProfileName(ProfileNameT &&value)
void SetSecurityConfiguration(SecurityConfigurationT &&value)
JobRun & WithJobRunQueuingEnabled(bool value)
bool LastModifiedOnHasBeenSet() const
JobRun & WithArguments(ArgumentsT &&value)
bool TimeoutHasBeenSet() const
const Aws::Utils::DateTime & GetCompletedOn() const
bool DPUSecondsHasBeenSet() const
JobRun & WithErrorMessage(ErrorMessageT &&value)
bool SecurityConfigurationHasBeenSet() const
void SetLastModifiedOn(LastModifiedOnT &&value)
JobRun & WithExecutionTime(int value)
bool AttemptHasBeenSet() const
JobRun & WithNumberOfWorkers(int value)
void SetJobName(JobNameT &&value)
JobRun & AddArguments(ArgumentsKeyT &&key, ArgumentsValueT &&value)
bool PreviousRunIdHasBeenSet() const
void SetGlueVersion(GlueVersionT &&value)
bool MaintenanceWindowHasBeenSet() const
bool LogGroupNameHasBeenSet() const
AWS_GLUE_API JobRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogGroupName() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API JobRun(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedOn() const
void SetPreviousRunId(PreviousRunIdT &&value)
bool GetJobRunQueuingEnabled() const
JobRun & WithJobMode(JobMode value)
void SetCompletedOn(CompletedOnT &&value)
JobRun & WithMaxCapacity(double value)
const Aws::String & GetErrorMessage() const
int GetNumberOfWorkers() const
const Aws::String & GetId() const
bool JobRunStateHasBeenSet() const
bool GlueVersionHasBeenSet() const
JobRun & AddPredecessorRuns(PredecessorRunsT &&value)
WorkerType GetWorkerType() const
const Aws::String & GetStateDetail() const
JobRun & WithStateDetail(StateDetailT &&value)
JobRun & WithAttempt(int value)
void SetWorkerType(WorkerType value)
bool CompletedOnHasBeenSet() const
const Aws::String & GetSecurityConfiguration() const
void SetJobRunState(JobRunState value)
bool StartedOnHasBeenSet() const
const Aws::String & GetTriggerName() const
const Aws::String & GetPreviousRunId() const
void SetStartedOn(StartedOnT &&value)
JobRun & WithPreviousRunId(PreviousRunIdT &&value)
JobRun & WithExecutionClass(ExecutionClass value)
void SetArguments(ArgumentsT &&value)
void SetNotificationProperty(NotificationPropertyT &&value)
JobRun & WithId(IdT &&value)
void SetMaxCapacity(double value)
bool TriggerNameHasBeenSet() const
JobRun & WithJobName(JobNameT &&value)
void SetLogGroupName(LogGroupNameT &&value)
ExecutionClass GetExecutionClass() const
bool NotificationPropertyHasBeenSet() const
double GetMaxCapacity() const
bool ErrorMessageHasBeenSet() const
void SetAttempt(int value)
const Aws::String & GetGlueVersion() const
const Aws::Utils::DateTime & GetStartedOn() const
JobRun & WithTimeout(int value)
const NotificationProperty & GetNotificationProperty() const
AWS_GLUE_API JobRun()=default
JobRun & WithLogGroupName(LogGroupNameT &&value)
void SetExecutionTime(int value)
void SetStateDetail(StateDetailT &&value)
const Aws::String & GetProfileName() const
void SetTriggerName(TriggerNameT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue