@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobDefinition extends Object implements Serializable, Cloneable, StructuredPojo
An object representing an Batch job definition.
Constructor and Description |
---|
JobDefinition() |
Modifier and Type | Method and Description |
---|---|
JobDefinition |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
JobDefinition |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
JobDefinition |
clearParametersEntries()
Removes all the entries added into Parameters.
|
JobDefinition |
clearTagsEntries()
Removes all the entries added into Tags.
|
JobDefinition |
clone() |
boolean |
equals(Object obj) |
ContainerProperties |
getContainerProperties()
An object with various properties specific to container-based jobs.
|
String |
getJobDefinitionArn()
The Amazon Resource Name (ARN) for the job definition.
|
String |
getJobDefinitionName()
The name of the job definition.
|
NodeProperties |
getNodeProperties()
An object with various properties specific to multi-node parallel jobs.
|
Map<String,String> |
getParameters()
Default parameters or parameter substitution placeholders that are set in the job definition.
|
List<String> |
getPlatformCapabilities()
The platform capabilities required by the job definition.
|
Boolean |
getPropagateTags()
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
|
RetryStrategy |
getRetryStrategy()
The retry strategy to use for failed jobs that are submitted with this job definition.
|
Integer |
getRevision()
The revision of the job definition.
|
String |
getStatus()
The status of the job definition.
|
Map<String,String> |
getTags()
The tags applied to the job definition.
|
JobTimeout |
getTimeout()
The timeout configuration for jobs that are submitted with this job definition.
|
String |
getType()
The type of job definition.
|
int |
hashCode() |
Boolean |
isPropagateTags()
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerProperties(ContainerProperties containerProperties)
An object with various properties specific to container-based jobs.
|
void |
setJobDefinitionArn(String jobDefinitionArn)
The Amazon Resource Name (ARN) for the job definition.
|
void |
setJobDefinitionName(String jobDefinitionName)
The name of the job definition.
|
void |
setNodeProperties(NodeProperties nodeProperties)
An object with various properties specific to multi-node parallel jobs.
|
void |
setParameters(Map<String,String> parameters)
Default parameters or parameter substitution placeholders that are set in the job definition.
|
void |
setPlatformCapabilities(Collection<String> platformCapabilities)
The platform capabilities required by the job definition.
|
void |
setPropagateTags(Boolean propagateTags)
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
|
void |
setRetryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
|
void |
setRevision(Integer revision)
The revision of the job definition.
|
void |
setStatus(String status)
The status of the job definition.
|
void |
setTags(Map<String,String> tags)
The tags applied to the job definition.
|
void |
setTimeout(JobTimeout timeout)
The timeout configuration for jobs that are submitted with this job definition.
|
void |
setType(String type)
The type of job definition.
|
String |
toString()
Returns a string representation of this object.
|
JobDefinition |
withContainerProperties(ContainerProperties containerProperties)
An object with various properties specific to container-based jobs.
|
JobDefinition |
withJobDefinitionArn(String jobDefinitionArn)
The Amazon Resource Name (ARN) for the job definition.
|
JobDefinition |
withJobDefinitionName(String jobDefinitionName)
The name of the job definition.
|
JobDefinition |
withNodeProperties(NodeProperties nodeProperties)
An object with various properties specific to multi-node parallel jobs.
|
JobDefinition |
withParameters(Map<String,String> parameters)
Default parameters or parameter substitution placeholders that are set in the job definition.
|
JobDefinition |
withPlatformCapabilities(Collection<String> platformCapabilities)
The platform capabilities required by the job definition.
|
JobDefinition |
withPlatformCapabilities(PlatformCapability... platformCapabilities)
The platform capabilities required by the job definition.
|
JobDefinition |
withPlatformCapabilities(String... platformCapabilities)
The platform capabilities required by the job definition.
|
JobDefinition |
withPropagateTags(Boolean propagateTags)
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
|
JobDefinition |
withRetryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
|
JobDefinition |
withRevision(Integer revision)
The revision of the job definition.
|
JobDefinition |
withStatus(String status)
The status of the job definition.
|
JobDefinition |
withTags(Map<String,String> tags)
The tags applied to the job definition.
|
JobDefinition |
withTimeout(JobTimeout timeout)
The timeout configuration for jobs that are submitted with this job definition.
|
JobDefinition |
withType(String type)
The type of job definition.
|
public void setJobDefinitionName(String jobDefinitionName)
The name of the job definition.
jobDefinitionName
- The name of the job definition.public String getJobDefinitionName()
The name of the job definition.
public JobDefinition withJobDefinitionName(String jobDefinitionName)
The name of the job definition.
jobDefinitionName
- The name of the job definition.public void setJobDefinitionArn(String jobDefinitionArn)
The Amazon Resource Name (ARN) for the job definition.
jobDefinitionArn
- The Amazon Resource Name (ARN) for the job definition.public String getJobDefinitionArn()
The Amazon Resource Name (ARN) for the job definition.
public JobDefinition withJobDefinitionArn(String jobDefinitionArn)
The Amazon Resource Name (ARN) for the job definition.
jobDefinitionArn
- The Amazon Resource Name (ARN) for the job definition.public void setRevision(Integer revision)
The revision of the job definition.
revision
- The revision of the job definition.public Integer getRevision()
The revision of the job definition.
public JobDefinition withRevision(Integer revision)
The revision of the job definition.
revision
- The revision of the job definition.public void setStatus(String status)
The status of the job definition.
status
- The status of the job definition.public String getStatus()
The status of the job definition.
public JobDefinition withStatus(String status)
The status of the job definition.
status
- The status of the job definition.public void setType(String type)
The type of job definition. If the job is run on Fargate resources, then multinode
isn't supported.
For more information about multi-node parallel jobs, see Creating a multi-node parallel
job definition in the Batch User Guide.
type
- The type of job definition. If the job is run on Fargate resources, then multinode
isn't
supported. For more information about multi-node parallel jobs, see Creating a multi-node
parallel job definition in the Batch User Guide.public String getType()
The type of job definition. If the job is run on Fargate resources, then multinode
isn't supported.
For more information about multi-node parallel jobs, see Creating a multi-node parallel
job definition in the Batch User Guide.
multinode
isn't
supported. For more information about multi-node parallel jobs, see Creating a multi-node
parallel job definition in the Batch User Guide.public JobDefinition withType(String type)
The type of job definition. If the job is run on Fargate resources, then multinode
isn't supported.
For more information about multi-node parallel jobs, see Creating a multi-node parallel
job definition in the Batch User Guide.
type
- The type of job definition. If the job is run on Fargate resources, then multinode
isn't
supported. For more information about multi-node parallel jobs, see Creating a multi-node
parallel job definition in the Batch User Guide.public Map<String,String> getParameters()
Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are
specified as a key-value pair mapping. Parameters in a SubmitJob
request override any corresponding
parameter defaults from the job definition. For more information about specifying parameters, see Job Definition
Parameters in the Batch User Guide.
SubmitJob
request override any
corresponding parameter defaults from the job definition. For more information about specifying
parameters, see Job Definition
Parameters in the Batch User Guide.public void setParameters(Map<String,String> parameters)
Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are
specified as a key-value pair mapping. Parameters in a SubmitJob
request override any corresponding
parameter defaults from the job definition. For more information about specifying parameters, see Job Definition
Parameters in the Batch User Guide.
parameters
- Default parameters or parameter substitution placeholders that are set in the job definition. Parameters
are specified as a key-value pair mapping. Parameters in a SubmitJob
request override any
corresponding parameter defaults from the job definition. For more information about specifying
parameters, see Job Definition
Parameters in the Batch User Guide.public JobDefinition withParameters(Map<String,String> parameters)
Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are
specified as a key-value pair mapping. Parameters in a SubmitJob
request override any corresponding
parameter defaults from the job definition. For more information about specifying parameters, see Job Definition
Parameters in the Batch User Guide.
parameters
- Default parameters or parameter substitution placeholders that are set in the job definition. Parameters
are specified as a key-value pair mapping. Parameters in a SubmitJob
request override any
corresponding parameter defaults from the job definition. For more information about specifying
parameters, see Job Definition
Parameters in the Batch User Guide.public JobDefinition addParametersEntry(String key, String value)
public JobDefinition clearParametersEntries()
public void setRetryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
retryStrategy
- The retry strategy to use for failed jobs that are submitted with this job definition.public RetryStrategy getRetryStrategy()
The retry strategy to use for failed jobs that are submitted with this job definition.
public JobDefinition withRetryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
retryStrategy
- The retry strategy to use for failed jobs that are submitted with this job definition.public void setContainerProperties(ContainerProperties containerProperties)
An object with various properties specific to container-based jobs.
containerProperties
- An object with various properties specific to container-based jobs.public ContainerProperties getContainerProperties()
An object with various properties specific to container-based jobs.
public JobDefinition withContainerProperties(ContainerProperties containerProperties)
An object with various properties specific to container-based jobs.
containerProperties
- An object with various properties specific to container-based jobs.public void setTimeout(JobTimeout timeout)
The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout duration after which Batch terminates your jobs if they haven't finished.
timeout
- The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout
duration after which Batch terminates your jobs if they haven't finished.public JobTimeout getTimeout()
The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout duration after which Batch terminates your jobs if they haven't finished.
public JobDefinition withTimeout(JobTimeout timeout)
The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout duration after which Batch terminates your jobs if they haven't finished.
timeout
- The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout
duration after which Batch terminates your jobs if they haven't finished.public void setNodeProperties(NodeProperties nodeProperties)
An object with various properties specific to multi-node parallel jobs.
If the job runs on Fargate resources, then you must not specify nodeProperties
; use
containerProperties
instead.
nodeProperties
- An object with various properties specific to multi-node parallel jobs.
If the job runs on Fargate resources, then you must not specify nodeProperties
; use
containerProperties
instead.
public NodeProperties getNodeProperties()
An object with various properties specific to multi-node parallel jobs.
If the job runs on Fargate resources, then you must not specify nodeProperties
; use
containerProperties
instead.
If the job runs on Fargate resources, then you must not specify nodeProperties
; use
containerProperties
instead.
public JobDefinition withNodeProperties(NodeProperties nodeProperties)
An object with various properties specific to multi-node parallel jobs.
If the job runs on Fargate resources, then you must not specify nodeProperties
; use
containerProperties
instead.
nodeProperties
- An object with various properties specific to multi-node parallel jobs.
If the job runs on Fargate resources, then you must not specify nodeProperties
; use
containerProperties
instead.
public Map<String,String> getTags()
The tags applied to the job definition.
public void setTags(Map<String,String> tags)
The tags applied to the job definition.
tags
- The tags applied to the job definition.public JobDefinition withTags(Map<String,String> tags)
The tags applied to the job definition.
tags
- The tags applied to the job definition.public JobDefinition addTagsEntry(String key, String value)
public JobDefinition clearTagsEntries()
public void setPropagateTags(Boolean propagateTags)
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If
no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation.
For tags with the same name, job tags are given priority over job definitions tags. If the total number of
combined tags from the job and job definition is over 50, the job is moved to the FAILED
state.
propagateTags
- Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS
task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks
during task creation. For tags with the same name, job tags are given priority over job definitions tags.
If the total number of combined tags from the job and job definition is over 50, the job is moved to the
FAILED
state.public Boolean getPropagateTags()
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If
no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation.
For tags with the same name, job tags are given priority over job definitions tags. If the total number of
combined tags from the job and job definition is over 50, the job is moved to the FAILED
state.
FAILED
state.public JobDefinition withPropagateTags(Boolean propagateTags)
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If
no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation.
For tags with the same name, job tags are given priority over job definitions tags. If the total number of
combined tags from the job and job definition is over 50, the job is moved to the FAILED
state.
propagateTags
- Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS
task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks
during task creation. For tags with the same name, job tags are given priority over job definitions tags.
If the total number of combined tags from the job and job definition is over 50, the job is moved to the
FAILED
state.public Boolean isPropagateTags()
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If
no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation.
For tags with the same name, job tags are given priority over job definitions tags. If the total number of
combined tags from the job and job definition is over 50, the job is moved to the FAILED
state.
FAILED
state.public List<String> getPlatformCapabilities()
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.
EC2
. Jobs run on Fargate resources specify FARGATE
.PlatformCapability
public void setPlatformCapabilities(Collection<String> platformCapabilities)
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.
platformCapabilities
- The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.PlatformCapability
public JobDefinition withPlatformCapabilities(String... platformCapabilities)
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.
NOTE: This method appends the values to the existing list (if any). Use
setPlatformCapabilities(java.util.Collection)
or withPlatformCapabilities(java.util.Collection)
if you want to override the existing values.
platformCapabilities
- The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.PlatformCapability
public JobDefinition withPlatformCapabilities(Collection<String> platformCapabilities)
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.
platformCapabilities
- The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.PlatformCapability
public JobDefinition withPlatformCapabilities(PlatformCapability... platformCapabilities)
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.
platformCapabilities
- The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specify FARGATE
.PlatformCapability
public String toString()
toString
in class Object
Object.toString()
public JobDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.