@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobDefinition extends Object implements Serializable, Cloneable, StructuredPojo
An object representing an AWS Batch job definition.
Constructor and Description |
---|
JobDefinition() |
Modifier and Type | Method and Description |
---|---|
JobDefinition |
addParametersEntry(String key,
String value) |
JobDefinition |
clearParametersEntries()
Removes all the entries added into Parameters.
|
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.
|
Map<String,String> |
getParameters()
Default parameters or parameter substitution placeholders that are set in the job definition.
|
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.
|
String |
getType()
The type of job definition.
|
int |
hashCode() |
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 |
setParameters(Map<String,String> parameters)
Default parameters or parameter substitution placeholders that are set in the job definition.
|
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 |
setType(String type)
The type of job definition.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 |
withParameters(Map<String,String> parameters)
Default parameters or parameter substitution placeholders that are set in the job definition.
|
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 |
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.
type
- The type of job definition.public String getType()
The type of job definition.
public JobDefinition withType(String type)
The type of job definition.
type
- The type of job definition.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.
SubmitJob
request override any
corresponding parameter defaults from the job definition.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.
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.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.
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.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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.