@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) |
RegisterJobDefinitionRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
RegisterJobDefinitionRequest |
clone() |
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.
|
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 |
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 |
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, copyBaseTo, 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 String toString()
toString
in class Object
Object.toString()
public RegisterJobDefinitionRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2020. All rights reserved.