7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/batch/model/RetryStrategy.h>
11#include <aws/batch/model/ContainerProperties.h>
12#include <aws/batch/model/JobTimeout.h>
13#include <aws/batch/model/NodeProperties.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/batch/model/EcsProperties.h>
16#include <aws/batch/model/EksProperties.h>
17#include <aws/batch/model/OrchestrationType.h>
18#include <aws/batch/model/ConsumableResourceProperties.h>
19#include <aws/batch/model/PlatformCapability.h>
58 template<
typename JobDefinitionNameT = Aws::String>
59 void SetJobDefinitionName(JobDefinitionNameT&& value) { m_jobDefinitionNameHasBeenSet =
true; m_jobDefinitionName = std::forward<JobDefinitionNameT>(value); }
60 template<
typename JobDefinitionNameT = Aws::String>
70 template<
typename JobDefinitionArnT = Aws::String>
71 void SetJobDefinitionArn(JobDefinitionArnT&& value) { m_jobDefinitionArnHasBeenSet =
true; m_jobDefinitionArn = std::forward<JobDefinitionArnT>(value); }
72 template<
typename JobDefinitionArnT = Aws::String>
82 inline void SetRevision(
int value) { m_revisionHasBeenSet =
true; m_revision = value; }
92 template<
typename StatusT = Aws::String>
93 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
94 template<
typename StatusT = Aws::String>
109 template<
typename TypeT = Aws::String>
110 void SetType(TypeT&& value) { m_typeHasBeenSet =
true; m_type = std::forward<TypeT>(value); }
111 template<
typename TypeT = Aws::String>
123 inline void SetSchedulingPriority(
int value) { m_schedulingPriorityHasBeenSet =
true; m_schedulingPriority = value; }
139 template<
typename ParametersT = Aws::Map<Aws::String, Aws::String>>
140 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
141 template<
typename ParametersT = Aws::Map<Aws::String, Aws::String>>
143 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::String>
145 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
156 template<
typename RetryStrategyT = RetryStrategy>
157 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet =
true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
158 template<
typename RetryStrategyT = RetryStrategy>
171 template<
typename ContainerPropertiesT = ContainerProperties>
172 void SetContainerProperties(ContainerPropertiesT&& value) { m_containerPropertiesHasBeenSet =
true; m_containerProperties = std::forward<ContainerPropertiesT>(value); }
173 template<
typename ContainerPropertiesT = ContainerProperties>
185 template<
typename TimeoutT = JobTimeout>
186 void SetTimeout(TimeoutT&& value) { m_timeoutHasBeenSet =
true; m_timeout = std::forward<TimeoutT>(value); }
187 template<
typename TimeoutT = JobTimeout>
202 template<
typename NodePropertiesT = NodeProperties>
203 void SetNodeProperties(NodePropertiesT&& value) { m_nodePropertiesHasBeenSet =
true; m_nodeProperties = std::forward<NodePropertiesT>(value); }
204 template<
typename NodePropertiesT = NodeProperties>
214 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
215 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
216 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
220 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
235 inline void SetPropagateTags(
bool value) { m_propagateTagsHasBeenSet =
true; m_propagateTags = value; }
247 template<
typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
248 void SetPlatformCapabilities(PlatformCapabilitiesT&& value) { m_platformCapabilitiesHasBeenSet =
true; m_platformCapabilities = std::forward<PlatformCapabilitiesT>(value); }
249 template<
typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
263 template<
typename EcsPropertiesT = EcsProperties>
264 void SetEcsProperties(EcsPropertiesT&& value) { m_ecsPropertiesHasBeenSet =
true; m_ecsProperties = std::forward<EcsPropertiesT>(value); }
265 template<
typename EcsPropertiesT = EcsProperties>
278 template<
typename EksPropertiesT = EksProperties>
279 void SetEksProperties(EksPropertiesT&& value) { m_eksPropertiesHasBeenSet =
true; m_eksProperties = std::forward<EksPropertiesT>(value); }
280 template<
typename EksPropertiesT = EksProperties>
301 template<
typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
302 void SetConsumableResourceProperties(ConsumableResourcePropertiesT&& value) { m_consumableResourcePropertiesHasBeenSet =
true; m_consumableResourceProperties = std::forward<ConsumableResourcePropertiesT>(value); }
303 template<
typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
309 bool m_jobDefinitionNameHasBeenSet =
false;
312 bool m_jobDefinitionArnHasBeenSet =
false;
315 bool m_revisionHasBeenSet =
false;
318 bool m_statusHasBeenSet =
false;
321 bool m_typeHasBeenSet =
false;
323 int m_schedulingPriority{0};
324 bool m_schedulingPriorityHasBeenSet =
false;
327 bool m_parametersHasBeenSet =
false;
329 RetryStrategy m_retryStrategy;
330 bool m_retryStrategyHasBeenSet =
false;
332 ContainerProperties m_containerProperties;
333 bool m_containerPropertiesHasBeenSet =
false;
335 JobTimeout m_timeout;
336 bool m_timeoutHasBeenSet =
false;
338 NodeProperties m_nodeProperties;
339 bool m_nodePropertiesHasBeenSet =
false;
342 bool m_tagsHasBeenSet =
false;
344 bool m_propagateTags{
false};
345 bool m_propagateTagsHasBeenSet =
false;
348 bool m_platformCapabilitiesHasBeenSet =
false;
350 EcsProperties m_ecsProperties;
351 bool m_ecsPropertiesHasBeenSet =
false;
353 EksProperties m_eksProperties;
354 bool m_eksPropertiesHasBeenSet =
false;
357 bool m_containerOrchestrationTypeHasBeenSet =
false;
359 ConsumableResourceProperties m_consumableResourceProperties;
360 bool m_consumableResourcePropertiesHasBeenSet =
false;
bool TimeoutHasBeenSet() const
const NodeProperties & GetNodeProperties() const
void SetPropagateTags(bool value)
bool JobDefinitionNameHasBeenSet() const
const Aws::String & GetJobDefinitionName() const
JobDefinition & WithContainerOrchestrationType(OrchestrationType value)
JobDefinition & WithContainerProperties(ContainerPropertiesT &&value)
void SetContainerProperties(ContainerPropertiesT &&value)
bool PropagateTagsHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool SchedulingPriorityHasBeenSet() const
const ConsumableResourceProperties & GetConsumableResourceProperties() const
int GetSchedulingPriority() const
bool ConsumableResourcePropertiesHasBeenSet() const
AWS_BATCH_API JobDefinition(Aws::Utils::Json::JsonView jsonValue)
JobDefinition & AddPlatformCapabilities(PlatformCapability value)
bool TypeHasBeenSet() const
JobDefinition & WithParameters(ParametersT &&value)
JobDefinition & WithJobDefinitionArn(JobDefinitionArnT &&value)
void SetContainerOrchestrationType(OrchestrationType value)
void SetTimeout(TimeoutT &&value)
void SetStatus(StatusT &&value)
void SetPlatformCapabilities(PlatformCapabilitiesT &&value)
void SetJobDefinitionName(JobDefinitionNameT &&value)
void SetEksProperties(EksPropertiesT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const EksProperties & GetEksProperties() const
void SetSchedulingPriority(int value)
AWS_BATCH_API JobDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TagsHasBeenSet() const
bool NodePropertiesHasBeenSet() const
const JobTimeout & GetTimeout() const
void SetTags(TagsT &&value)
void SetEcsProperties(EcsPropertiesT &&value)
void SetJobDefinitionArn(JobDefinitionArnT &&value)
JobDefinition & WithEksProperties(EksPropertiesT &&value)
JobDefinition & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool EksPropertiesHasBeenSet() const
JobDefinition & WithStatus(StatusT &&value)
JobDefinition & WithSchedulingPriority(int value)
bool ContainerPropertiesHasBeenSet() const
const Aws::Vector< PlatformCapability > & GetPlatformCapabilities() const
JobDefinition & WithType(TypeT &&value)
const Aws::String & GetJobDefinitionArn() const
void SetParameters(ParametersT &&value)
JobDefinition & WithRevision(int value)
void SetNodeProperties(NodePropertiesT &&value)
const EcsProperties & GetEcsProperties() const
const ContainerProperties & GetContainerProperties() const
bool ContainerOrchestrationTypeHasBeenSet() const
JobDefinition & WithRetryStrategy(RetryStrategyT &&value)
const RetryStrategy & GetRetryStrategy() const
void SetConsumableResourceProperties(ConsumableResourcePropertiesT &&value)
JobDefinition & WithEcsProperties(EcsPropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
const Aws::String & GetType() const
OrchestrationType GetContainerOrchestrationType() const
bool ParametersHasBeenSet() const
bool EcsPropertiesHasBeenSet() const
const Aws::String & GetStatus() const
void SetRevision(int value)
JobDefinition & WithTimeout(TimeoutT &&value)
JobDefinition & WithJobDefinitionName(JobDefinitionNameT &&value)
bool GetPropagateTags() const
JobDefinition & WithTags(TagsT &&value)
JobDefinition & WithConsumableResourceProperties(ConsumableResourcePropertiesT &&value)
JobDefinition & WithPropagateTags(bool value)
JobDefinition & WithPlatformCapabilities(PlatformCapabilitiesT &&value)
bool RetryStrategyHasBeenSet() const
bool StatusHasBeenSet() const
void SetRetryStrategy(RetryStrategyT &&value)
bool RevisionHasBeenSet() const
bool JobDefinitionArnHasBeenSet() const
AWS_BATCH_API JobDefinition()=default
bool PlatformCapabilitiesHasBeenSet() const
JobDefinition & WithNodeProperties(NodePropertiesT &&value)
JobDefinition & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
void SetType(TypeT &&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