@Generated(value="software.amazon.awssdk:codegen") public final class JobDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<JobDetail.Builder,JobDetail>
An object representing an AWS Batch job.
| Modifier and Type | Class and Description |
|---|---|
static interface |
JobDetail.Builder |
| Modifier and Type | Method and Description |
|---|---|
ArrayPropertiesDetail |
arrayProperties()
The array properties of the job, if it is an array job.
|
List<AttemptDetail> |
attempts()
A list of job attempts associated with this job.
|
static JobDetail.Builder |
builder() |
ContainerDetail |
container()
An object representing the details of the container that's associated with the job.
|
Long |
createdAt()
The Unix timestamp (in milliseconds) for when the job was created.
|
List<JobDependency> |
dependsOn()
A list of job IDs that this job depends on.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAttempts()
Returns true if the Attempts property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasDependsOn()
Returns true if the DependsOn property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasParameters()
Returns true if the Parameters property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasPlatformCapabilities()
Returns true if the PlatformCapabilities property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
jobArn()
The Amazon Resource Name (ARN) of the job.
|
String |
jobDefinition()
The job definition that's used by this job.
|
String |
jobId()
The ID for the job.
|
String |
jobName()
The name of the job.
|
String |
jobQueue()
The Amazon Resource Name (ARN) of the job queue that the job is associated with.
|
NodeDetails |
nodeDetails()
An object representing the details of a node that's associated with a multi-node parallel job.
|
NodeProperties |
nodeProperties()
An object representing the node properties of a multi-node parallel job.
|
Map<String,String> |
parameters()
Additional parameters passed to the job that replace parameter substitution placeholders or override any
corresponding parameter defaults from 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 this job if an attempt fails.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends JobDetail.Builder> |
serializableBuilderClass() |
Long |
startedAt()
The Unix timestamp (in milliseconds) for when the job was started (when the job transitioned from the
STARTING state to the RUNNING state). |
JobStatus |
status()
The current status for the job.
|
String |
statusAsString()
The current status for the job.
|
String |
statusReason()
A short, human-readable string to provide additional details about the current status of the job.
|
Long |
stoppedAt()
The Unix timestamp (in milliseconds) for when the job was stopped (when the job transitioned from the
RUNNING state to a terminal state, such as SUCCEEDED or FAILED). |
Map<String,String> |
tags()
The tags applied to the job.
|
JobTimeout |
timeout()
The timeout configuration for the job.
|
JobDetail.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String jobArn()
The Amazon Resource Name (ARN) of the job.
public final String jobName()
The name of the job.
public final String jobId()
The ID for the job.
public final String jobQueue()
The Amazon Resource Name (ARN) of the job queue that the job is associated with.
public final JobStatus status()
The current status for the job.
If your jobs don't progress to STARTING, see Jobs Stuck
in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
If the service returns an enum value that is not available in the current SDK version, status will
return JobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
If your jobs don't progress to STARTING, see Jobs
Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
JobStatuspublic final String statusAsString()
The current status for the job.
If your jobs don't progress to STARTING, see Jobs Stuck
in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
If the service returns an enum value that is not available in the current SDK version, status will
return JobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
If your jobs don't progress to STARTING, see Jobs
Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
JobStatuspublic final boolean hasAttempts()
public final List<AttemptDetail> attempts()
A list of job attempts associated with this job.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAttempts() to see if a value was sent in this field.
public final String statusReason()
A short, human-readable string to provide additional details about the current status of the job.
public final Long createdAt()
The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this
is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array
child jobs, this is when the child job was spawned by its parent and entered the PENDING state.
SUBMITTED state (at the time SubmitJob was
called). For array child jobs, this is when the child job was spawned by its parent and entered the
PENDING state.public final RetryStrategy retryStrategy()
The retry strategy to use for this job if an attempt fails.
public final Long startedAt()
The Unix timestamp (in milliseconds) for when the job was started (when the job transitioned from the
STARTING state to the RUNNING state). This parameter isn't provided for child jobs of
array jobs or multi-node parallel jobs.
STARTING state to the RUNNING state). This parameter isn't provided for child
jobs of array jobs or multi-node parallel jobs.public final Long stoppedAt()
The Unix timestamp (in milliseconds) for when the job was stopped (when the job transitioned from the
RUNNING state to a terminal state, such as SUCCEEDED or FAILED).
RUNNING state to a terminal state, such as SUCCEEDED or FAILED).public final boolean hasDependsOn()
public final List<JobDependency> dependsOn()
A list of job IDs that this job depends on.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDependsOn() to see if a value was sent in this field.
public final String jobDefinition()
The job definition that's used by this job.
public final boolean hasParameters()
public final Map<String,String> parameters()
Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasParameters() to see if a value was sent in this field.
public final ContainerDetail container()
An object representing the details of the container that's associated with the job.
public final NodeDetails nodeDetails()
An object representing the details of a node that's associated with a multi-node parallel job.
public final NodeProperties nodeProperties()
An object representing the node properties of a multi-node parallel job.
This isn't applicable to jobs running on Fargate resources.
This isn't applicable to jobs running on Fargate resources.
public final ArrayPropertiesDetail arrayProperties()
The array properties of the job, if it is an array job.
public final JobTimeout timeout()
The timeout configuration for the job.
public final boolean hasTags()
public final Map<String,String> tags()
The tags applied to the job.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
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 aren't 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.
FAILED state.public final List<PlatformCapability> platformCapabilities()
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPlatformCapabilities() to see if a value was sent in this field.
EC2. Jobs run on Fargate resources specify FARGATE.public final boolean hasPlatformCapabilities()
public final List<String> platformCapabilitiesAsStrings()
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPlatformCapabilities() to see if a value was sent in this field.
EC2. Jobs run on Fargate resources specify FARGATE.public JobDetail.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<JobDetail.Builder,JobDetail>public static JobDetail.Builder builder()
public static Class<? extends JobDetail.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.