@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RegisterJobDefinitionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RegisterJobDefinitionRequest() |
Modifier and Type | Method and Description |
---|---|
RegisterJobDefinitionRequest |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
RegisterJobDefinitionRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
RegisterJobDefinitionRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
RegisterJobDefinitionRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
RegisterJobDefinitionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ContainerProperties |
getContainerProperties()
An object with various properties specific to single-node container-based jobs.
|
String |
getJobDefinitionName()
The name of the job definition to register.
|
NodeProperties |
getNodeProperties()
An object with various properties specific to multi-node parallel jobs.
|
Map<String,String> |
getParameters()
Default parameter substitution placeholders to set in the job definition.
|
RetryStrategy |
getRetryStrategy()
The retry strategy to use for failed jobs that are submitted with this job definition.
|
Map<String,String> |
getTags()
The tags that you apply to the job definition to help you categorize and organize your resources.
|
JobTimeout |
getTimeout()
The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates
your jobs if they have not finished.
|
String |
getType()
The type of job definition.
|
int |
hashCode() |
void |
setContainerProperties(ContainerProperties containerProperties)
An object with various properties specific to single-node container-based jobs.
|
void |
setJobDefinitionName(String jobDefinitionName)
The name of the job definition to register.
|
void |
setNodeProperties(NodeProperties nodeProperties)
An object with various properties specific to multi-node parallel jobs.
|
void |
setParameters(Map<String,String> parameters)
Default parameter substitution placeholders to 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 |
setTags(Map<String,String> tags)
The tags that you apply to the job definition to help you categorize and organize your resources.
|
void |
setTimeout(JobTimeout timeout)
The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates
your jobs if they have not finished.
|
void |
setType(JobDefinitionType type)
The type of job definition.
|
void |
setType(String type)
The type of job definition.
|
String |
toString()
Returns a string representation of this object.
|
RegisterJobDefinitionRequest |
withContainerProperties(ContainerProperties containerProperties)
An object with various properties specific to single-node container-based jobs.
|
RegisterJobDefinitionRequest |
withJobDefinitionName(String jobDefinitionName)
The name of the job definition to register.
|
RegisterJobDefinitionRequest |
withNodeProperties(NodeProperties nodeProperties)
An object with various properties specific to multi-node parallel jobs.
|
RegisterJobDefinitionRequest |
withParameters(Map<String,String> parameters)
Default parameter substitution placeholders to set in the job definition.
|
RegisterJobDefinitionRequest |
withRetryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
|
RegisterJobDefinitionRequest |
withTags(Map<String,String> tags)
The tags that you apply to the job definition to help you categorize and organize your resources.
|
RegisterJobDefinitionRequest |
withTimeout(JobTimeout timeout)
The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates
your jobs if they have not finished.
|
RegisterJobDefinitionRequest |
withType(JobDefinitionType type)
The type of job definition.
|
RegisterJobDefinitionRequest |
withType(String type)
The type of job definition.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setJobDefinitionName(String jobDefinitionName)
The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
jobDefinitionName
- The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens,
and underscores are allowed.public String getJobDefinitionName()
The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
public RegisterJobDefinitionRequest withJobDefinitionName(String jobDefinitionName)
The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
jobDefinitionName
- The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens,
and underscores are allowed.public void setType(String type)
The type of job definition.
type
- The type of job definition.JobDefinitionType
public String getType()
The type of job definition.
JobDefinitionType
public RegisterJobDefinitionRequest withType(String type)
The type of job definition.
type
- The type of job definition.JobDefinitionType
public void setType(JobDefinitionType type)
The type of job definition.
type
- The type of job definition.JobDefinitionType
public RegisterJobDefinitionRequest withType(JobDefinitionType type)
The type of job definition.
type
- The type of job definition.JobDefinitionType
public Map<String,String> getParameters()
Default parameter substitution placeholders to 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 parameter substitution placeholders to 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 parameter substitution placeholders to 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 RegisterJobDefinitionRequest withParameters(Map<String,String> parameters)
Default parameter substitution placeholders to 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 parameter substitution placeholders to 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 RegisterJobDefinitionRequest addParametersEntry(String key, String value)
public RegisterJobDefinitionRequest clearParametersEntries()
public void setContainerProperties(ContainerProperties containerProperties)
An object with various properties specific to single-node container-based jobs. If the job definition's
type
parameter is container
, then you must specify either
containerProperties
or nodeProperties
.
containerProperties
- An object with various properties specific to single-node container-based jobs. If the job definition's
type
parameter is container
, then you must specify either
containerProperties
or nodeProperties
.public ContainerProperties getContainerProperties()
An object with various properties specific to single-node container-based jobs. If the job definition's
type
parameter is container
, then you must specify either
containerProperties
or nodeProperties
.
type
parameter is container
, then you must specify either
containerProperties
or nodeProperties
.public RegisterJobDefinitionRequest withContainerProperties(ContainerProperties containerProperties)
An object with various properties specific to single-node container-based jobs. If the job definition's
type
parameter is container
, then you must specify either
containerProperties
or nodeProperties
.
containerProperties
- An object with various properties specific to single-node container-based jobs. If the job definition's
type
parameter is container
, then you must specify either
containerProperties
or nodeProperties
.public void setNodeProperties(NodeProperties nodeProperties)
An object with various properties specific to multi-node parallel jobs. If you specify node properties for a job,
it becomes a multi-node parallel job. For more information, see Multi-node Parallel
Jobs in the AWS Batch User Guide. If the job definition's type
parameter is
container
, then you must specify either containerProperties
or
nodeProperties
.
nodeProperties
- An object with various properties specific to multi-node parallel jobs. If you specify node properties for
a job, it becomes a multi-node parallel job. For more information, see Multi-node
Parallel Jobs in the AWS Batch User Guide. If the job definition's type
parameter
is container
, then you must specify either containerProperties
or
nodeProperties
.public NodeProperties getNodeProperties()
An object with various properties specific to multi-node parallel jobs. If you specify node properties for a job,
it becomes a multi-node parallel job. For more information, see Multi-node Parallel
Jobs in the AWS Batch User Guide. If the job definition's type
parameter is
container
, then you must specify either containerProperties
or
nodeProperties
.
type
parameter
is container
, then you must specify either containerProperties
or
nodeProperties
.public RegisterJobDefinitionRequest withNodeProperties(NodeProperties nodeProperties)
An object with various properties specific to multi-node parallel jobs. If you specify node properties for a job,
it becomes a multi-node parallel job. For more information, see Multi-node Parallel
Jobs in the AWS Batch User Guide. If the job definition's type
parameter is
container
, then you must specify either containerProperties
or
nodeProperties
.
nodeProperties
- An object with various properties specific to multi-node parallel jobs. If you specify node properties for
a job, it becomes a multi-node parallel job. For more information, see Multi-node
Parallel Jobs in the AWS Batch User Guide. If the job definition's type
parameter
is container
, then you must specify either containerProperties
or
nodeProperties
.public void setRetryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that is specified during a SubmitJob operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it is not retried.
retryStrategy
- The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy
that is specified during a SubmitJob operation overrides the retry strategy defined here. If a job
is terminated due to a timeout, it is not retried.public RetryStrategy getRetryStrategy()
The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that is specified during a SubmitJob operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it is not retried.
public RegisterJobDefinitionRequest withRetryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that is specified during a SubmitJob operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it is not retried.
retryStrategy
- The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy
that is specified during a SubmitJob operation overrides the retry strategy defined here. If a job
is terminated due to a timeout, it is not retried.public void setTimeout(JobTimeout timeout)
The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that is specified during a SubmitJob operation overrides the timeout configuration defined here. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide.
timeout
- The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch
terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not
retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that is specified
during a SubmitJob operation overrides the timeout configuration defined here. For more
information, see Job Timeouts in
the Amazon Elastic Container Service Developer Guide.public JobTimeout getTimeout()
The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that is specified during a SubmitJob operation overrides the timeout configuration defined here. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide.
public RegisterJobDefinitionRequest withTimeout(JobTimeout timeout)
The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that is specified during a SubmitJob operation overrides the timeout configuration defined here. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide.
timeout
- The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch
terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not
retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that is specified
during a SubmitJob operation overrides the timeout configuration defined here. For more
information, see Job Timeouts in
the Amazon Elastic Container Service Developer Guide.public Map<String,String> getTags()
The tags that you apply to the job definition to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General Reference.
public void setTags(Map<String,String> tags)
The tags that you apply to the job definition to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General Reference.
tags
- The tags that you apply to the job definition to help you categorize and organize your resources. Each tag
consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS
General Reference.public RegisterJobDefinitionRequest withTags(Map<String,String> tags)
The tags that you apply to the job definition to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General Reference.
tags
- The tags that you apply to the job definition to help you categorize and organize your resources. Each tag
consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS
General Reference.public RegisterJobDefinitionRequest addTagsEntry(String key, String value)
public RegisterJobDefinitionRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public RegisterJobDefinitionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()