@Generated(value="software.amazon.awssdk:codegen") public final class RegisterJobDefinitionRequest extends BatchRequest implements ToCopyableBuilder<RegisterJobDefinitionRequest.Builder,RegisterJobDefinitionRequest>
Contains the parameters for RegisterJobDefinition.
| 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 Amazon ECS based single-node container-based jobs.
|
EksProperties |
eksProperties()
An object with various properties that are specific to Amazon EKS based jobs.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameters()
For responses, this returns true if the service returned a value for the Parameters property.
|
boolean |
hasPlatformCapabilities()
For responses, this returns true if the service returned a value for the PlatformCapabilities property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
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.
|
List<PlatformCapability> |
platformCapabilities()
The platform capabilities required by the job definition.
|
List<String> |
platformCapabilitiesAsStrings()
The platform capabilities required by the job definition.
|
Boolean |
propagateTags()
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
|
RetryStrategy |
retryStrategy()
The retry strategy to use for failed jobs that are submitted with this job definition.
|
Integer |
schedulingPriority()
The scheduling priority for jobs that are submitted with this job definition.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RegisterJobDefinitionRequest.Builder> |
serializableBuilderClass() |
Map<String,String> |
tags()
The tags that you apply to the job definition to help you categorize and organize your resources.
|
JobTimeout |
timeout()
The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates your
jobs if they have not finished.
|
RegisterJobDefinitionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
JobDefinitionType |
type()
The type of job definition.
|
String |
typeAsString()
The type of job definition.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String jobDefinitionName()
The name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
public final JobDefinitionType type()
The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the Batch User Guide.
If the job is run on Fargate resources, then multinode isn't supported.
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().
If the job is run on Fargate resources, then multinode isn't supported.
JobDefinitionTypepublic final String typeAsString()
The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the Batch User Guide.
If the job is run on Fargate resources, then multinode isn't supported.
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().
If the job is run on Fargate resources, then multinode isn't supported.
JobDefinitionTypepublic final boolean hasParameters()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasParameters() method.
SubmitJob request override any corresponding
parameter defaults from the job definition.public final Integer schedulingPriority()
The scheduling priority for jobs that are submitted with this job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.
The minimum supported value is 0 and the maximum supported value is 9999.
The minimum supported value is 0 and the maximum supported value is 9999.
public final ContainerProperties containerProperties()
An object with various properties specific to Amazon ECS based single-node container-based jobs. If the job
definition's type parameter is container, then you must specify either
containerProperties or nodeProperties. This must not be specified for Amazon EKS based
job definitions.
If the job runs on Fargate resources, then you must not specify nodeProperties; use only
containerProperties.
type parameter is container, then you must specify either
containerProperties or nodeProperties. This must not be specified for Amazon
EKS based job definitions.
If the job runs on Fargate resources, then you must not specify nodeProperties; use only
containerProperties.
public final 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 Batch User Guide. If the job definition's type parameter is
container, then you must specify either containerProperties or
nodeProperties.
If the job runs on Fargate resources, then you must not specify nodeProperties; use
containerProperties instead.
If the job runs on Amazon EKS resources, then you must not specify nodeProperties.
type parameter is
container, then you must specify either containerProperties or
nodeProperties.
If the job runs on Fargate resources, then you must not specify nodeProperties; use
containerProperties instead.
If the job runs on Amazon EKS resources, then you must not specify nodeProperties.
public final RetryStrategy retryStrategy()
The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's specified during a SubmitJob operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it isn't retried.
public final 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 are not 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.
If the job runs on Amazon EKS resources, then you must not specify propagateTags.
FAILED state.
If the job runs on Amazon EKS resources, then you must not specify propagateTags.
public final JobTimeout timeout()
The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation overrides the timeout configuration defined here. For more information, see Job Timeouts in the Batch User Guide.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final 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 Amazon Web Services Resources in Batch User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final List<PlatformCapability> platformCapabilities()
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. To run the job on Fargate resources, specify FARGATE.
If the job runs on Amazon EKS resources, then you must not specify platformCapabilities.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPlatformCapabilities() method.
EC2. To run the job on Fargate resources, specify FARGATE.
If the job runs on Amazon EKS resources, then you must not specify platformCapabilities.
public final boolean hasPlatformCapabilities()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> platformCapabilitiesAsStrings()
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. To run the job on Fargate resources, specify FARGATE.
If the job runs on Amazon EKS resources, then you must not specify platformCapabilities.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPlatformCapabilities() method.
EC2. To run the job on Fargate resources, specify FARGATE.
If the job runs on Amazon EKS resources, then you must not specify platformCapabilities.
public final EksProperties eksProperties()
An object with various properties that are specific to Amazon EKS based jobs. This must not be specified for Amazon ECS based job definitions.
public RegisterJobDefinitionRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RegisterJobDefinitionRequest.Builder,RegisterJobDefinitionRequest>toBuilder in class BatchRequestpublic static RegisterJobDefinitionRequest.Builder builder()
public static Class<? extends RegisterJobDefinitionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.