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/emr-serverless/EMRServerless_EXPORTS.h>
11#include <aws/emr-serverless/model/ConfigurationOverrides.h>
12#include <aws/emr-serverless/model/FlexExecution.h>
13#include <aws/emr-serverless/model/ImageConfiguration.h>
14#include <aws/emr-serverless/model/JobDriver.h>
15#include <aws/emr-serverless/model/JobRunExecutionIamPolicy.h>
16#include <aws/emr-serverless/model/JobRunMode.h>
17#include <aws/emr-serverless/model/JobRunState.h>
18#include <aws/emr-serverless/model/NetworkConfiguration.h>
19#include <aws/emr-serverless/model/ResourceUtilization.h>
20#include <aws/emr-serverless/model/RetryPolicy.h>
21#include <aws/emr-serverless/model/TotalResourceUtilization.h>
22#include <aws/emr-serverless/model/WorkerTypeSpecification.h>
33namespace EMRServerless {
45 AWS_EMRSERVERLESS_API
JobRun() =
default;
56 template <
typename ApplicationIdT = Aws::String>
58 m_applicationIdHasBeenSet =
true;
59 m_applicationId = std::forward<ApplicationIdT>(value);
61 template <
typename ApplicationIdT = Aws::String>
74 template <
typename JobRunIdT = Aws::String>
76 m_jobRunIdHasBeenSet =
true;
77 m_jobRunId = std::forward<JobRunIdT>(value);
79 template <
typename JobRunIdT = Aws::String>
92 template <
typename NameT = Aws::String>
94 m_nameHasBeenSet =
true;
95 m_name = std::forward<NameT>(value);
97 template <
typename NameT = Aws::String>
99 SetName(std::forward<NameT>(value));
110 template <
typename ArnT = Aws::String>
112 m_arnHasBeenSet =
true;
113 m_arn = std::forward<ArnT>(value);
115 template <
typename ArnT = Aws::String>
117 SetArn(std::forward<ArnT>(value));
128 template <
typename CreatedByT = Aws::String>
130 m_createdByHasBeenSet =
true;
131 m_createdBy = std::forward<CreatedByT>(value);
133 template <
typename CreatedByT = Aws::String>
146 template <
typename CreatedAtT = Aws::Utils::DateTime>
148 m_createdAtHasBeenSet =
true;
149 m_createdAt = std::forward<CreatedAtT>(value);
151 template <
typename CreatedAtT = Aws::Utils::DateTime>
164 template <
typename UpdatedAtT = Aws::Utils::DateTime>
166 m_updatedAtHasBeenSet =
true;
167 m_updatedAt = std::forward<UpdatedAtT>(value);
169 template <
typename UpdatedAtT = Aws::Utils::DateTime>
182 template <
typename ExecutionRoleT = Aws::String>
184 m_executionRoleHasBeenSet =
true;
185 m_executionRole = std::forward<ExecutionRoleT>(value);
187 template <
typename ExecutionRoleT = Aws::String>
198 template <
typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
200 m_executionIamPolicyHasBeenSet =
true;
201 m_executionIamPolicy = std::forward<ExecutionIamPolicyT>(value);
203 template <
typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
217 m_stateHasBeenSet =
true;
232 template <
typename StateDetailsT = Aws::String>
234 m_stateDetailsHasBeenSet =
true;
235 m_stateDetails = std::forward<StateDetailsT>(value);
237 template <
typename StateDetailsT = Aws::String>
251 template <
typename ReleaseLabelT = Aws::String>
253 m_releaseLabelHasBeenSet =
true;
254 m_releaseLabel = std::forward<ReleaseLabelT>(value);
256 template <
typename ReleaseLabelT = Aws::String>
270 template <
typename ConfigurationOverr
idesT = ConfigurationOverr
ides>
272 m_configurationOverridesHasBeenSet =
true;
273 m_configurationOverrides = std::forward<ConfigurationOverridesT>(value);
275 template <
typename ConfigurationOverr
idesT = ConfigurationOverr
ides>
288 template <
typename JobDriverT = JobDriver>
290 m_jobDriverHasBeenSet =
true;
291 m_jobDriver = std::forward<JobDriverT>(value);
293 template <
typename JobDriverT = JobDriver>
306 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
308 m_tagsHasBeenSet =
true;
309 m_tags = std::forward<TagsT>(value);
311 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
313 SetTags(std::forward<TagsT>(value));
316 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
318 m_tagsHasBeenSet =
true;
319 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
332 template <
typename TotalResourceUtilizationT = TotalResourceUtilization>
334 m_totalResourceUtilizationHasBeenSet =
true;
335 m_totalResourceUtilization = std::forward<TotalResourceUtilizationT>(value);
337 template <
typename TotalResourceUtilizationT = TotalResourceUtilization>
348 template <
typename NetworkConfigurationT = NetworkConfiguration>
350 m_networkConfigurationHasBeenSet =
true;
351 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
353 template <
typename NetworkConfigurationT = NetworkConfiguration>
369 m_totalExecutionDurationSecondsHasBeenSet =
true;
370 m_totalExecutionDurationSeconds = value;
388 m_executionTimeoutMinutesHasBeenSet =
true;
389 m_executionTimeoutMinutes = value;
406 template <
typename BilledResourceUtilizationT = ResourceUtilization>
408 m_billedResourceUtilizationHasBeenSet =
true;
409 m_billedResourceUtilization = std::forward<BilledResourceUtilizationT>(value);
411 template <
typename BilledResourceUtilizationT = ResourceUtilization>
425 m_modeHasBeenSet =
true;
440 template <
typename RetryPolicyT = RetryPolicy>
442 m_retryPolicyHasBeenSet =
true;
443 m_retryPolicy = std::forward<RetryPolicyT>(value);
445 template <
typename RetryPolicyT = RetryPolicy>
459 m_attemptHasBeenSet =
true;
474 template <
typename AttemptCreatedAtT = Aws::Utils::DateTime>
476 m_attemptCreatedAtHasBeenSet =
true;
477 m_attemptCreatedAt = std::forward<AttemptCreatedAtT>(value);
479 template <
typename AttemptCreatedAtT = Aws::Utils::DateTime>
492 template <
typename AttemptUpdatedAtT = Aws::Utils::DateTime>
494 m_attemptUpdatedAtHasBeenSet =
true;
495 m_attemptUpdatedAt = std::forward<AttemptUpdatedAtT>(value);
497 template <
typename AttemptUpdatedAtT = Aws::Utils::DateTime>
510 template <
typename StartedAtT = Aws::Utils::DateTime>
512 m_startedAtHasBeenSet =
true;
513 m_startedAt = std::forward<StartedAtT>(value);
515 template <
typename StartedAtT = Aws::Utils::DateTime>
528 template <
typename EndedAtT = Aws::Utils::DateTime>
530 m_endedAtHasBeenSet =
true;
531 m_endedAt = std::forward<EndedAtT>(value);
533 template <
typename EndedAtT = Aws::Utils::DateTime>
547 m_queuedDurationMillisecondsHasBeenSet =
true;
548 m_queuedDurationMilliseconds = value;
560 template <
typename ImageConfigurationT = ImageConfiguration>
562 m_imageConfigurationHasBeenSet =
true;
563 m_imageConfiguration = std::forward<ImageConfigurationT>(value);
565 template <
typename ImageConfigurationT = ImageConfiguration>
580 template <
typename WorkerTypeSpecificationsT = Aws::Map<Aws::String, WorkerTypeSpecification>>
582 m_workerTypeSpecificationsHasBeenSet =
true;
583 m_workerTypeSpecifications = std::forward<WorkerTypeSpecificationsT>(value);
585 template <
typename WorkerTypeSpecificationsT = Aws::Map<Aws::String, WorkerTypeSpecification>>
590 template <
typename WorkerTypeSpecificationsKeyT = Aws::String,
typename WorkerTypeSpecificationsValueT = WorkerTypeSpecification>
592 m_workerTypeSpecificationsHasBeenSet =
true;
593 m_workerTypeSpecifications.emplace(std::forward<WorkerTypeSpecificationsKeyT>(key),
594 std::forward<WorkerTypeSpecificationsValueT>(value));
605 template <
typename FlexExecutionT = FlexExecution>
607 m_flexExecutionHasBeenSet =
true;
608 m_flexExecution = std::forward<FlexExecutionT>(value);
610 template <
typename FlexExecutionT = FlexExecution>
633 JobRunExecutionIamPolicy m_executionIamPolicy;
641 ConfigurationOverrides m_configurationOverrides;
643 JobDriver m_jobDriver;
647 TotalResourceUtilization m_totalResourceUtilization;
649 NetworkConfiguration m_networkConfiguration;
651 int m_totalExecutionDurationSeconds{0};
653 long long m_executionTimeoutMinutes{0};
655 ResourceUtilization m_billedResourceUtilization;
659 RetryPolicy m_retryPolicy;
671 long long m_queuedDurationMilliseconds{0};
673 ImageConfiguration m_imageConfiguration;
677 FlexExecution m_flexExecution;
678 bool m_applicationIdHasBeenSet =
false;
679 bool m_jobRunIdHasBeenSet =
false;
680 bool m_nameHasBeenSet =
false;
681 bool m_arnHasBeenSet =
false;
682 bool m_createdByHasBeenSet =
false;
683 bool m_createdAtHasBeenSet =
false;
684 bool m_updatedAtHasBeenSet =
false;
685 bool m_executionRoleHasBeenSet =
false;
686 bool m_executionIamPolicyHasBeenSet =
false;
687 bool m_stateHasBeenSet =
false;
688 bool m_stateDetailsHasBeenSet =
false;
689 bool m_releaseLabelHasBeenSet =
false;
690 bool m_configurationOverridesHasBeenSet =
false;
691 bool m_jobDriverHasBeenSet =
false;
692 bool m_tagsHasBeenSet =
false;
693 bool m_totalResourceUtilizationHasBeenSet =
false;
694 bool m_networkConfigurationHasBeenSet =
false;
695 bool m_totalExecutionDurationSecondsHasBeenSet =
false;
696 bool m_executionTimeoutMinutesHasBeenSet =
false;
697 bool m_billedResourceUtilizationHasBeenSet =
false;
698 bool m_modeHasBeenSet =
false;
699 bool m_retryPolicyHasBeenSet =
false;
700 bool m_attemptHasBeenSet =
false;
701 bool m_attemptCreatedAtHasBeenSet =
false;
702 bool m_attemptUpdatedAtHasBeenSet =
false;
703 bool m_startedAtHasBeenSet =
false;
704 bool m_endedAtHasBeenSet =
false;
705 bool m_queuedDurationMillisecondsHasBeenSet =
false;
706 bool m_imageConfigurationHasBeenSet =
false;
707 bool m_workerTypeSpecificationsHasBeenSet =
false;
708 bool m_flexExecutionHasBeenSet =
false;
JobRun & WithNetworkConfiguration(NetworkConfigurationT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
bool NameHasBeenSet() const
bool TotalExecutionDurationSecondsHasBeenSet() const
bool ConfigurationOverridesHasBeenSet() const
JobRun & WithRetryPolicy(RetryPolicyT &&value)
const FlexExecution & GetFlexExecution() const
JobRun & WithExecutionRole(ExecutionRoleT &&value)
const Aws::Utils::DateTime & GetAttemptCreatedAt() const
JobRun & WithWorkerTypeSpecifications(WorkerTypeSpecificationsT &&value)
JobRun & WithStartedAt(StartedAtT &&value)
bool BilledResourceUtilizationHasBeenSet() const
bool AttemptHasBeenSet() const
JobRun & WithReleaseLabel(ReleaseLabelT &&value)
const ConfigurationOverrides & GetConfigurationOverrides() const
JobRun & WithTotalExecutionDurationSeconds(int value)
bool StateDetailsHasBeenSet() const
JobRun & WithJobDriver(JobDriverT &&value)
bool NetworkConfigurationHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
JobRun & WithBilledResourceUtilization(BilledResourceUtilizationT &&value)
void SetRetryPolicy(RetryPolicyT &&value)
JobRun & WithJobRunId(JobRunIdT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
bool WorkerTypeSpecificationsHasBeenSet() const
JobRun & AddWorkerTypeSpecifications(WorkerTypeSpecificationsKeyT &&key, WorkerTypeSpecificationsValueT &&value)
JobRun & WithApplicationId(ApplicationIdT &&value)
bool AttemptUpdatedAtHasBeenSet() const
void SetReleaseLabel(ReleaseLabelT &&value)
const Aws::String & GetReleaseLabel() const
void SetBilledResourceUtilization(BilledResourceUtilizationT &&value)
void SetName(NameT &&value)
long long GetQueuedDurationMilliseconds() const
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttempt(int value)
void SetWorkerTypeSpecifications(WorkerTypeSpecificationsT &&value)
const JobDriver & GetJobDriver() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetArn() const
AWS_EMRSERVERLESS_API JobRun & operator=(Aws::Utils::Json::JsonView jsonValue)
JobRun & WithName(NameT &&value)
const Aws::String & GetCreatedBy() const
JobRun & WithMode(JobRunMode value)
bool ExecutionTimeoutMinutesHasBeenSet() const
const JobRunExecutionIamPolicy & GetExecutionIamPolicy() const
JobRun & WithState(JobRunState value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetTotalExecutionDurationSeconds(int value)
bool TagsHasBeenSet() const
bool ImageConfigurationHasBeenSet() const
JobRunState GetState() const
const Aws::Utils::DateTime & GetAttemptUpdatedAt() const
const ResourceUtilization & GetBilledResourceUtilization() const
bool UpdatedAtHasBeenSet() const
void SetEndedAt(EndedAtT &&value)
bool JobRunIdHasBeenSet() const
void SetArn(ArnT &&value)
JobRun & WithExecutionIamPolicy(ExecutionIamPolicyT &&value)
JobRun & WithTags(TagsT &&value)
bool TotalResourceUtilizationHasBeenSet() const
AWS_EMRSERVERLESS_API JobRun(Aws::Utils::Json::JsonView jsonValue)
void SetTotalResourceUtilization(TotalResourceUtilizationT &&value)
const ImageConfiguration & GetImageConfiguration() const
bool FlexExecutionHasBeenSet() const
void SetImageConfiguration(ImageConfigurationT &&value)
JobRun & WithExecutionTimeoutMinutes(long long value)
void SetExecutionIamPolicy(ExecutionIamPolicyT &&value)
void SetExecutionTimeoutMinutes(long long value)
bool ExecutionIamPolicyHasBeenSet() const
const Aws::Map< Aws::String, WorkerTypeSpecification > & GetWorkerTypeSpecifications() const
void SetFlexExecution(FlexExecutionT &&value)
void SetJobRunId(JobRunIdT &&value)
JobRun & WithAttemptCreatedAt(AttemptCreatedAtT &&value)
bool AttemptCreatedAtHasBeenSet() const
bool ModeHasBeenSet() const
JobRun & WithArn(ArnT &&value)
void SetCreatedBy(CreatedByT &&value)
long long GetExecutionTimeoutMinutes() const
const Aws::Utils::DateTime & GetEndedAt() const
bool RetryPolicyHasBeenSet() const
JobRunMode GetMode() const
bool QueuedDurationMillisecondsHasBeenSet() const
const Aws::String & GetApplicationId() const
bool CreatedAtHasBeenSet() const
void SetApplicationId(ApplicationIdT &&value)
JobRun & WithTotalResourceUtilization(TotalResourceUtilizationT &&value)
bool JobDriverHasBeenSet() const
void SetJobDriver(JobDriverT &&value)
JobRun & WithAttempt(int value)
bool ApplicationIdHasBeenSet() const
JobRun & WithEndedAt(EndedAtT &&value)
bool ReleaseLabelHasBeenSet() const
void SetMode(JobRunMode value)
bool ArnHasBeenSet() const
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
void SetStartedAt(StartedAtT &&value)
JobRun & WithQueuedDurationMilliseconds(long long value)
JobRun & AddTags(TagsKeyT &&key, TagsValueT &&value)
JobRun & WithImageConfiguration(ImageConfigurationT &&value)
bool StartedAtHasBeenSet() const
JobRun & WithCreatedBy(CreatedByT &&value)
JobRun & WithFlexExecution(FlexExecutionT &&value)
bool EndedAtHasBeenSet() const
void SetAttemptUpdatedAt(AttemptUpdatedAtT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
bool CreatedByHasBeenSet() const
void SetStateDetails(StateDetailsT &&value)
AWS_EMRSERVERLESS_API JobRun()=default
const Aws::String & GetStateDetails() const
const Aws::String & GetExecutionRole() const
const NetworkConfiguration & GetNetworkConfiguration() const
bool StateHasBeenSet() const
JobRun & WithConfigurationOverrides(ConfigurationOverridesT &&value)
const Aws::String & GetJobRunId() const
JobRun & WithAttemptUpdatedAt(AttemptUpdatedAtT &&value)
const TotalResourceUtilization & GetTotalResourceUtilization() const
bool ExecutionRoleHasBeenSet() const
JobRun & WithStateDetails(StateDetailsT &&value)
JobRun & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetQueuedDurationMilliseconds(long long value)
const RetryPolicy & GetRetryPolicy() const
void SetState(JobRunState value)
const Aws::String & GetName() const
void SetAttemptCreatedAt(AttemptCreatedAtT &&value)
JobRun & WithUpdatedAt(UpdatedAtT &&value)
int GetTotalExecutionDurationSeconds() const
void SetTags(TagsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
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