@Generated(value="software.amazon.awssdk:codegen") public final class RegisterJobDefinitionRequest extends BatchRequest implements ToCopyableBuilder<RegisterJobDefinitionRequest.Builder,RegisterJobDefinitionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
RegisterJobDefinitionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static RegisterJobDefinitionRequest.Builder |
builder() |
ContainerProperties |
containerProperties()
An object with various properties specific to single-node container-based jobs.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
jobDefinitionName()
The name of the job definition to register.
|
NodeProperties |
nodeProperties()
An object with various properties specific to multi-node parallel jobs.
|
Map<String,String> |
parameters()
Default parameter substitution placeholders to set in the job definition.
|
RetryStrategy |
retryStrategy()
The retry strategy to use for failed jobs that are submitted with this job definition.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RegisterJobDefinitionRequest.Builder> |
serializableBuilderClass() |
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.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
JobDefinitionType |
type()
The type of job definition.
|
String |
typeAsString()
The type of job definition.
|
overrideConfiguration
copy
public String jobDefinitionName()
The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
public JobDefinitionType type()
The type of job definition.
If the service returns an enum value that is not available in the current SDK version, type
will return
JobDefinitionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
JobDefinitionType
public String typeAsString()
The type of job definition.
If the service returns an enum value that is not available in the current SDK version, type
will return
JobDefinitionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
JobDefinitionType
public 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
SubmitJob
request override any corresponding
parameter defaults from the job definition.public 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
.
type
parameter is container
, then you must specify either
containerProperties
or nodeProperties
.public 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
.
type
parameter
is container
, then you must specify either containerProperties
or
nodeProperties
.public 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.
public 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.
public RegisterJobDefinitionRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RegisterJobDefinitionRequest.Builder,RegisterJobDefinitionRequest>
toBuilder
in class BatchRequest
public static RegisterJobDefinitionRequest.Builder builder()
public static Class<? extends RegisterJobDefinitionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.