7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/JobStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/batch/model/RetryStrategy.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/batch/model/ContainerDetail.h>
14#include <aws/batch/model/NodeDetails.h>
15#include <aws/batch/model/NodeProperties.h>
16#include <aws/batch/model/ArrayPropertiesDetail.h>
17#include <aws/batch/model/JobTimeout.h>
18#include <aws/batch/model/EksPropertiesDetail.h>
19#include <aws/batch/model/EcsPropertiesDetail.h>
20#include <aws/batch/model/ConsumableResourceProperties.h>
21#include <aws/batch/model/AttemptDetail.h>
22#include <aws/batch/model/JobDependency.h>
23#include <aws/batch/model/PlatformCapability.h>
24#include <aws/batch/model/EksAttemptDetail.h>
62 template<
typename JobArnT = Aws::String>
63 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet =
true; m_jobArn = std::forward<JobArnT>(value); }
64 template<
typename JobArnT = Aws::String>
74 template<
typename JobNameT = Aws::String>
75 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet =
true; m_jobName = std::forward<JobNameT>(value); }
76 template<
typename JobNameT = Aws::String>
86 template<
typename JobIdT = Aws::String>
87 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet =
true; m_jobId = std::forward<JobIdT>(value); }
88 template<
typename JobIdT = Aws::String>
99 template<
typename JobQueueT = Aws::String>
100 void SetJobQueue(JobQueueT&& value) { m_jobQueueHasBeenSet =
true; m_jobQueue = std::forward<JobQueueT>(value); }
101 template<
typename JobQueueT = Aws::String>
125 template<
typename ShareIdentifierT = Aws::String>
126 void SetShareIdentifier(ShareIdentifierT&& value) { m_shareIdentifierHasBeenSet =
true; m_shareIdentifier = std::forward<ShareIdentifierT>(value); }
127 template<
typename ShareIdentifierT = Aws::String>
139 inline void SetSchedulingPriority(
int value) { m_schedulingPriorityHasBeenSet =
true; m_schedulingPriority = value; }
149 template<
typename AttemptsT = Aws::Vector<AttemptDetail>>
150 void SetAttempts(AttemptsT&& value) { m_attemptsHasBeenSet =
true; m_attempts = std::forward<AttemptsT>(value); }
151 template<
typename AttemptsT = Aws::Vector<AttemptDetail>>
153 template<
typename AttemptsT = AttemptDetail>
154 JobDetail&
AddAttempts(AttemptsT&& value) { m_attemptsHasBeenSet =
true; m_attempts.emplace_back(std::forward<AttemptsT>(value));
return *
this; }
174 template<
typename StatusReasonT = Aws::String>
175 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet =
true; m_statusReason = std::forward<StatusReasonT>(value); }
176 template<
typename StatusReasonT = Aws::String>
191 inline void SetCreatedAt(
long long value) { m_createdAtHasBeenSet =
true; m_createdAt = value; }
201 template<
typename RetryStrategyT = RetryStrategy>
202 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet =
true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
203 template<
typename RetryStrategyT = RetryStrategy>
215 inline void SetStartedAt(
long long value) { m_startedAtHasBeenSet =
true; m_startedAt = value; }
227 inline void SetStoppedAt(
long long value) { m_stoppedAtHasBeenSet =
true; m_stoppedAt = value; }
237 template<
typename DependsOnT = Aws::Vector<JobDependency>>
238 void SetDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet =
true; m_dependsOn = std::forward<DependsOnT>(value); }
239 template<
typename DependsOnT = Aws::Vector<JobDependency>>
241 template<
typename DependsOnT = JobDependency>
242 JobDetail&
AddDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet =
true; m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
return *
this; }
251 template<
typename JobDefinitionT = Aws::String>
252 void SetJobDefinition(JobDefinitionT&& value) { m_jobDefinitionHasBeenSet =
true; m_jobDefinition = std::forward<JobDefinitionT>(value); }
253 template<
typename JobDefinitionT = Aws::String>
265 template<
typename ParametersT = Aws::Map<Aws::String, Aws::String>>
266 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
267 template<
typename ParametersT = Aws::Map<Aws::String, Aws::String>>
269 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::String>
271 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
283 template<
typename ContainerT = ContainerDetail>
284 void SetContainer(ContainerT&& value) { m_containerHasBeenSet =
true; m_container = std::forward<ContainerT>(value); }
285 template<
typename ContainerT = ContainerDetail>
296 template<
typename NodeDetailsT = NodeDetails>
297 void SetNodeDetails(NodeDetailsT&& value) { m_nodeDetailsHasBeenSet =
true; m_nodeDetails = std::forward<NodeDetailsT>(value); }
298 template<
typename NodeDetailsT = NodeDetails>
310 template<
typename NodePropertiesT = NodeProperties>
311 void SetNodeProperties(NodePropertiesT&& value) { m_nodePropertiesHasBeenSet =
true; m_nodeProperties = std::forward<NodePropertiesT>(value); }
312 template<
typename NodePropertiesT = NodeProperties>
322 template<
typename ArrayPropertiesT = ArrayPropertiesDetail>
323 void SetArrayProperties(ArrayPropertiesT&& value) { m_arrayPropertiesHasBeenSet =
true; m_arrayProperties = std::forward<ArrayPropertiesT>(value); }
324 template<
typename ArrayPropertiesT = ArrayPropertiesDetail>
334 template<
typename TimeoutT = JobTimeout>
335 void SetTimeout(TimeoutT&& value) { m_timeoutHasBeenSet =
true; m_timeout = std::forward<TimeoutT>(value); }
336 template<
typename TimeoutT = JobTimeout>
346 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
347 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
348 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
350 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
352 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
367 inline void SetPropagateTags(
bool value) { m_propagateTagsHasBeenSet =
true; m_propagateTags = value; }
379 template<
typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
380 void SetPlatformCapabilities(PlatformCapabilitiesT&& value) { m_platformCapabilitiesHasBeenSet =
true; m_platformCapabilities = std::forward<PlatformCapabilitiesT>(value); }
381 template<
typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
393 template<
typename EksPropertiesT = EksPropertiesDetail>
394 void SetEksProperties(EksPropertiesT&& value) { m_eksPropertiesHasBeenSet =
true; m_eksProperties = std::forward<EksPropertiesT>(value); }
395 template<
typename EksPropertiesT = EksPropertiesDetail>
405 template<
typename EksAttemptsT = Aws::Vector<EksAttemptDetail>>
406 void SetEksAttempts(EksAttemptsT&& value) { m_eksAttemptsHasBeenSet =
true; m_eksAttempts = std::forward<EksAttemptsT>(value); }
407 template<
typename EksAttemptsT = Aws::Vector<EksAttemptDetail>>
409 template<
typename EksAttemptsT = EksAttemptDetail>
410 JobDetail&
AddEksAttempts(EksAttemptsT&& value) { m_eksAttemptsHasBeenSet =
true; m_eksAttempts.emplace_back(std::forward<EksAttemptsT>(value));
return *
this; }
419 template<
typename EcsPropertiesT = EcsPropertiesDetail>
420 void SetEcsProperties(EcsPropertiesT&& value) { m_ecsPropertiesHasBeenSet =
true; m_ecsProperties = std::forward<EcsPropertiesT>(value); }
421 template<
typename EcsPropertiesT = EcsPropertiesDetail>
431 inline void SetIsCancelled(
bool value) { m_isCancelledHasBeenSet =
true; m_isCancelled = value; }
441 inline void SetIsTerminated(
bool value) { m_isTerminatedHasBeenSet =
true; m_isTerminated = value; }
451 template<
typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
452 void SetConsumableResourceProperties(ConsumableResourcePropertiesT&& value) { m_consumableResourcePropertiesHasBeenSet =
true; m_consumableResourceProperties = std::forward<ConsumableResourcePropertiesT>(value); }
453 template<
typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
459 bool m_jobArnHasBeenSet =
false;
462 bool m_jobNameHasBeenSet =
false;
465 bool m_jobIdHasBeenSet =
false;
468 bool m_jobQueueHasBeenSet =
false;
471 bool m_statusHasBeenSet =
false;
474 bool m_shareIdentifierHasBeenSet =
false;
476 int m_schedulingPriority{0};
477 bool m_schedulingPriorityHasBeenSet =
false;
480 bool m_attemptsHasBeenSet =
false;
483 bool m_statusReasonHasBeenSet =
false;
485 long long m_createdAt{0};
486 bool m_createdAtHasBeenSet =
false;
488 RetryStrategy m_retryStrategy;
489 bool m_retryStrategyHasBeenSet =
false;
491 long long m_startedAt{0};
492 bool m_startedAtHasBeenSet =
false;
494 long long m_stoppedAt{0};
495 bool m_stoppedAtHasBeenSet =
false;
498 bool m_dependsOnHasBeenSet =
false;
501 bool m_jobDefinitionHasBeenSet =
false;
504 bool m_parametersHasBeenSet =
false;
506 ContainerDetail m_container;
507 bool m_containerHasBeenSet =
false;
509 NodeDetails m_nodeDetails;
510 bool m_nodeDetailsHasBeenSet =
false;
512 NodeProperties m_nodeProperties;
513 bool m_nodePropertiesHasBeenSet =
false;
515 ArrayPropertiesDetail m_arrayProperties;
516 bool m_arrayPropertiesHasBeenSet =
false;
518 JobTimeout m_timeout;
519 bool m_timeoutHasBeenSet =
false;
522 bool m_tagsHasBeenSet =
false;
524 bool m_propagateTags{
false};
525 bool m_propagateTagsHasBeenSet =
false;
528 bool m_platformCapabilitiesHasBeenSet =
false;
530 EksPropertiesDetail m_eksProperties;
531 bool m_eksPropertiesHasBeenSet =
false;
534 bool m_eksAttemptsHasBeenSet =
false;
536 EcsPropertiesDetail m_ecsProperties;
537 bool m_ecsPropertiesHasBeenSet =
false;
539 bool m_isCancelled{
false};
540 bool m_isCancelledHasBeenSet =
false;
542 bool m_isTerminated{
false};
543 bool m_isTerminatedHasBeenSet =
false;
545 ConsumableResourceProperties m_consumableResourceProperties;
546 bool m_consumableResourcePropertiesHasBeenSet =
false;
JobDetail & WithContainer(ContainerT &&value)
const EcsPropertiesDetail & GetEcsProperties() const
void SetJobQueue(JobQueueT &&value)
bool ParametersHasBeenSet() const
JobDetail & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::Vector< PlatformCapability > & GetPlatformCapabilities() const
void SetIsTerminated(bool value)
void SetTimeout(TimeoutT &&value)
bool JobNameHasBeenSet() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
JobDetail & AddDependsOn(DependsOnT &&value)
void SetPropagateTags(bool value)
void SetDependsOn(DependsOnT &&value)
bool AttemptsHasBeenSet() const
bool JobQueueHasBeenSet() const
const Aws::Vector< EksAttemptDetail > & GetEksAttempts() const
const NodeDetails & GetNodeDetails() const
void SetEksProperties(EksPropertiesT &&value)
JobDetail & AddAttempts(AttemptsT &&value)
bool ArrayPropertiesHasBeenSet() const
bool ConsumableResourcePropertiesHasBeenSet() const
JobDetail & WithRetryStrategy(RetryStrategyT &&value)
bool TimeoutHasBeenSet() const
bool ContainerHasBeenSet() const
const NodeProperties & GetNodeProperties() const
bool CreatedAtHasBeenSet() const
bool StoppedAtHasBeenSet() const
bool GetIsCancelled() const
JobDetail & WithJobArn(JobArnT &&value)
JobDetail & WithEksAttempts(EksAttemptsT &&value)
const Aws::String & GetJobArn() const
JobDetail & WithNodeProperties(NodePropertiesT &&value)
const Aws::String & GetJobDefinition() const
bool GetIsTerminated() const
void SetSchedulingPriority(int value)
void SetShareIdentifier(ShareIdentifierT &&value)
bool StatusHasBeenSet() const
bool JobIdHasBeenSet() const
const ArrayPropertiesDetail & GetArrayProperties() const
JobDetail & WithStoppedAt(long long value)
void SetCreatedAt(long long value)
JobDetail & AddEksAttempts(EksAttemptsT &&value)
bool SchedulingPriorityHasBeenSet() const
const RetryStrategy & GetRetryStrategy() const
JobDetail & WithShareIdentifier(ShareIdentifierT &&value)
void SetEcsProperties(EcsPropertiesT &&value)
const ConsumableResourceProperties & GetConsumableResourceProperties() const
AWS_BATCH_API JobDetail()=default
bool StatusReasonHasBeenSet() const
void SetPlatformCapabilities(PlatformCapabilitiesT &&value)
JobDetail & WithStatus(JobStatus value)
JobDetail & WithParameters(ParametersT &&value)
void SetConsumableResourceProperties(ConsumableResourcePropertiesT &&value)
bool EcsPropertiesHasBeenSet() const
JobDetail & WithJobQueue(JobQueueT &&value)
void SetAttempts(AttemptsT &&value)
JobDetail & WithConsumableResourceProperties(ConsumableResourcePropertiesT &&value)
JobDetail & WithStatusReason(StatusReasonT &&value)
void SetNodeDetails(NodeDetailsT &&value)
bool StartedAtHasBeenSet() const
void SetJobName(JobNameT &&value)
bool JobArnHasBeenSet() const
bool IsTerminatedHasBeenSet() const
const Aws::String & GetJobName() const
bool RetryStrategyHasBeenSet() const
void SetParameters(ParametersT &&value)
bool JobDefinitionHasBeenSet() const
JobDetail & WithSchedulingPriority(int value)
bool EksAttemptsHasBeenSet() const
const ContainerDetail & GetContainer() const
JobDetail & WithNodeDetails(NodeDetailsT &&value)
JobDetail & WithJobId(JobIdT &&value)
JobDetail & WithIsCancelled(bool value)
JobDetail & WithArrayProperties(ArrayPropertiesT &&value)
void SetNodeProperties(NodePropertiesT &&value)
void SetIsCancelled(bool value)
void SetStatusReason(StatusReasonT &&value)
JobDetail & WithStartedAt(long long value)
bool TagsHasBeenSet() const
void SetJobArn(JobArnT &&value)
void SetStartedAt(long long value)
void SetRetryStrategy(RetryStrategyT &&value)
JobDetail & WithJobName(JobNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
bool NodePropertiesHasBeenSet() const
JobDetail & AddTags(TagsKeyT &&key, TagsValueT &&value)
JobDetail & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
JobDetail & WithPlatformCapabilities(PlatformCapabilitiesT &&value)
void SetEksAttempts(EksAttemptsT &&value)
void SetJobId(JobIdT &&value)
bool PropagateTagsHasBeenSet() const
const Aws::String & GetJobId() const
JobDetail & WithJobDefinition(JobDefinitionT &&value)
bool IsCancelledHasBeenSet() const
JobDetail & WithIsTerminated(bool value)
bool GetPropagateTags() const
JobDetail & WithCreatedAt(long long value)
AWS_BATCH_API JobDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobQueue() const
JobDetail & AddPlatformCapabilities(PlatformCapability value)
long long GetStartedAt() const
bool PlatformCapabilitiesHasBeenSet() const
JobDetail & WithPropagateTags(bool value)
long long GetCreatedAt() const
bool ShareIdentifierHasBeenSet() const
void SetStoppedAt(long long value)
const Aws::String & GetShareIdentifier() const
AWS_BATCH_API JobDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetStoppedAt() const
bool EksPropertiesHasBeenSet() const
void SetArrayProperties(ArrayPropertiesT &&value)
const Aws::String & GetStatusReason() const
bool DependsOnHasBeenSet() const
const JobTimeout & GetTimeout() const
JobStatus GetStatus() const
JobDetail & WithEcsProperties(EcsPropertiesT &&value)
int GetSchedulingPriority() const
bool NodeDetailsHasBeenSet() const
void SetStatus(JobStatus value)
const Aws::Vector< AttemptDetail > & GetAttempts() const
JobDetail & WithTimeout(TimeoutT &&value)
const Aws::Vector< JobDependency > & GetDependsOn() const
void SetContainer(ContainerT &&value)
void SetTags(TagsT &&value)
JobDetail & WithEksProperties(EksPropertiesT &&value)
const EksPropertiesDetail & GetEksProperties() const
JobDetail & WithDependsOn(DependsOnT &&value)
void SetJobDefinition(JobDefinitionT &&value)
JobDetail & WithAttempts(AttemptsT &&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