public static interface JobDetail.Builder extends SdkPojo, CopyableBuilder<JobDetail.Builder,JobDetail>
Modifier and Type | Method and Description |
---|---|
JobDetail.Builder |
arrayProperties(ArrayPropertiesDetail arrayProperties)
The array properties of the job, if it is an array job.
|
default JobDetail.Builder |
arrayProperties(Consumer<ArrayPropertiesDetail.Builder> arrayProperties)
The array properties of the job, if it is an array job.
|
JobDetail.Builder |
attempts(AttemptDetail... attempts)
A list of job attempts associated with this job.
|
JobDetail.Builder |
attempts(Collection<AttemptDetail> attempts)
A list of job attempts associated with this job.
|
JobDetail.Builder |
attempts(Consumer<AttemptDetail.Builder>... attempts)
A list of job attempts associated with this job.
|
default JobDetail.Builder |
container(Consumer<ContainerDetail.Builder> container)
An object representing the details of the container that is associated with the job.
|
JobDetail.Builder |
container(ContainerDetail container)
An object representing the details of the container that is associated with the job.
|
JobDetail.Builder |
createdAt(Long createdAt)
The Unix timestamp (in seconds and milliseconds) for when the job was created.
|
JobDetail.Builder |
dependsOn(Collection<JobDependency> dependsOn)
A list of job IDs on which this job depends.
|
JobDetail.Builder |
dependsOn(Consumer<JobDependency.Builder>... dependsOn)
A list of job IDs on which this job depends.
|
JobDetail.Builder |
dependsOn(JobDependency... dependsOn)
A list of job IDs on which this job depends.
|
JobDetail.Builder |
jobDefinition(String jobDefinition)
The job definition that is used by this job.
|
JobDetail.Builder |
jobId(String jobId)
The ID for the job.
|
JobDetail.Builder |
jobName(String jobName)
The name of the job.
|
JobDetail.Builder |
jobQueue(String jobQueue)
The Amazon Resource Name (ARN) of the job queue with which the job is associated.
|
default JobDetail.Builder |
nodeDetails(Consumer<NodeDetails.Builder> nodeDetails)
An object representing the details of a node that is associated with a multi-node parallel job.
|
JobDetail.Builder |
nodeDetails(NodeDetails nodeDetails)
An object representing the details of a node that is associated with a multi-node parallel job.
|
default JobDetail.Builder |
nodeProperties(Consumer<NodeProperties.Builder> nodeProperties)
An object representing the node properties of a multi-node parallel job.
|
JobDetail.Builder |
nodeProperties(NodeProperties nodeProperties)
An object representing the node properties of a multi-node parallel job.
|
JobDetail.Builder |
parameters(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.
|
default JobDetail.Builder |
retryStrategy(Consumer<RetryStrategy.Builder> retryStrategy)
The retry strategy to use for this job if an attempt fails.
|
JobDetail.Builder |
retryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for this job if an attempt fails.
|
JobDetail.Builder |
startedAt(Long startedAt)
The Unix timestamp (in seconds and milliseconds) for when the job was started (when the job transitioned from
the
STARTING state to the RUNNING state). |
JobDetail.Builder |
status(JobStatus status)
The current status for the job.
|
JobDetail.Builder |
status(String status)
The current status for the job.
|
JobDetail.Builder |
statusReason(String statusReason)
A short, human-readable string to provide additional details about the current status of the job.
|
JobDetail.Builder |
stoppedAt(Long stoppedAt)
The Unix timestamp (in seconds and milliseconds) for when the job was stopped (when the job transitioned from
the
RUNNING state to a terminal state, such as SUCCEEDED or FAILED ). |
default JobDetail.Builder |
timeout(Consumer<JobTimeout.Builder> timeout)
The timeout configuration for the job.
|
JobDetail.Builder |
timeout(JobTimeout timeout)
The timeout configuration for the job.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
JobDetail.Builder jobName(String jobName)
The name of the job.
jobName
- The name of the job.JobDetail.Builder jobId(String jobId)
The ID for the job.
jobId
- The ID for the job.JobDetail.Builder jobQueue(String jobQueue)
The Amazon Resource Name (ARN) of the job queue with which the job is associated.
jobQueue
- The Amazon Resource Name (ARN) of the job queue with which the job is associated.JobDetail.Builder status(String status)
The current status for the job.
If your jobs do not progress to STARTING
, see Jobs
Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
status
- The current status for the job.
If your jobs do not progress to STARTING
, see Jobs Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
JobStatus
,
JobStatus
JobDetail.Builder status(JobStatus status)
The current status for the job.
If your jobs do not progress to STARTING
, see Jobs
Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
status
- The current status for the job.
If your jobs do not progress to STARTING
, see Jobs Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
JobStatus
,
JobStatus
JobDetail.Builder attempts(Collection<AttemptDetail> attempts)
A list of job attempts associated with this job.
attempts
- A list of job attempts associated with this job.JobDetail.Builder attempts(AttemptDetail... attempts)
A list of job attempts associated with this job.
attempts
- A list of job attempts associated with this job.JobDetail.Builder attempts(Consumer<AttemptDetail.Builder>... attempts)
A list of job attempts associated with this job.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #attempts(List)
.attempts
- a consumer that will call methods on List.Builder
#attempts(List)
JobDetail.Builder statusReason(String statusReason)
A short, human-readable string to provide additional details about the current status of the job.
statusReason
- A short, human-readable string to provide additional details about the current status of the job.JobDetail.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds and 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.
createdAt
- The Unix timestamp (in seconds and 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.JobDetail.Builder retryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for this job if an attempt fails.
retryStrategy
- The retry strategy to use for this job if an attempt fails.default JobDetail.Builder retryStrategy(Consumer<RetryStrategy.Builder> retryStrategy)
The retry strategy to use for this job if an attempt fails.
This is a convenience that creates an instance of theRetryStrategy.Builder
avoiding the need to
create one manually via RetryStrategy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to retryStrategy(RetryStrategy)
.retryStrategy
- a consumer that will call methods on RetryStrategy.Builder
retryStrategy(RetryStrategy)
JobDetail.Builder startedAt(Long startedAt)
The Unix timestamp (in seconds and milliseconds) for when the job was started (when the job transitioned from
the STARTING
state to the RUNNING
state).
startedAt
- The Unix timestamp (in seconds and milliseconds) for when the job was started (when the job
transitioned from the STARTING
state to the RUNNING
state).JobDetail.Builder stoppedAt(Long stoppedAt)
The Unix timestamp (in seconds and milliseconds) for when the job was stopped (when the job transitioned from
the RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
).
stoppedAt
- The Unix timestamp (in seconds and milliseconds) for when the job was stopped (when the job
transitioned from the RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
).JobDetail.Builder dependsOn(Collection<JobDependency> dependsOn)
A list of job IDs on which this job depends.
dependsOn
- A list of job IDs on which this job depends.JobDetail.Builder dependsOn(JobDependency... dependsOn)
A list of job IDs on which this job depends.
dependsOn
- A list of job IDs on which this job depends.JobDetail.Builder dependsOn(Consumer<JobDependency.Builder>... dependsOn)
A list of job IDs on which this job depends.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #dependsOn(List)
.dependsOn
- a consumer that will call methods on List.Builder
#dependsOn(List)
JobDetail.Builder jobDefinition(String jobDefinition)
The job definition that is used by this job.
jobDefinition
- The job definition that is used by this job.JobDetail.Builder parameters(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.
parameters
- Additional parameters passed to the job that replace parameter substitution placeholders or override
any corresponding parameter defaults from the job definition.JobDetail.Builder container(ContainerDetail container)
An object representing the details of the container that is associated with the job.
container
- An object representing the details of the container that is associated with the job.default JobDetail.Builder container(Consumer<ContainerDetail.Builder> container)
An object representing the details of the container that is associated with the job.
This is a convenience that creates an instance of theContainerDetail.Builder
avoiding the need to
create one manually via ContainerDetail.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to container(ContainerDetail)
.container
- a consumer that will call methods on ContainerDetail.Builder
container(ContainerDetail)
JobDetail.Builder nodeDetails(NodeDetails nodeDetails)
An object representing the details of a node that is associated with a multi-node parallel job.
nodeDetails
- An object representing the details of a node that is associated with a multi-node parallel job.default JobDetail.Builder nodeDetails(Consumer<NodeDetails.Builder> nodeDetails)
An object representing the details of a node that is associated with a multi-node parallel job.
This is a convenience that creates an instance of theNodeDetails.Builder
avoiding the need to create
one manually via NodeDetails.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to nodeDetails(NodeDetails)
.nodeDetails
- a consumer that will call methods on NodeDetails.Builder
nodeDetails(NodeDetails)
JobDetail.Builder nodeProperties(NodeProperties nodeProperties)
An object representing the node properties of a multi-node parallel job.
nodeProperties
- An object representing the node properties of a multi-node parallel job.default JobDetail.Builder nodeProperties(Consumer<NodeProperties.Builder> nodeProperties)
An object representing the node properties of a multi-node parallel job.
This is a convenience that creates an instance of theNodeProperties.Builder
avoiding the need to
create one manually via NodeProperties.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to nodeProperties(NodeProperties)
.nodeProperties
- a consumer that will call methods on NodeProperties.Builder
nodeProperties(NodeProperties)
JobDetail.Builder arrayProperties(ArrayPropertiesDetail arrayProperties)
The array properties of the job, if it is an array job.
arrayProperties
- The array properties of the job, if it is an array job.default JobDetail.Builder arrayProperties(Consumer<ArrayPropertiesDetail.Builder> arrayProperties)
The array properties of the job, if it is an array job.
This is a convenience that creates an instance of theArrayPropertiesDetail.Builder
avoiding the need
to create one manually via ArrayPropertiesDetail.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to arrayProperties(ArrayPropertiesDetail)
.arrayProperties
- a consumer that will call methods on ArrayPropertiesDetail.Builder
arrayProperties(ArrayPropertiesDetail)
JobDetail.Builder timeout(JobTimeout timeout)
The timeout configuration for the job.
timeout
- The timeout configuration for the job.default JobDetail.Builder timeout(Consumer<JobTimeout.Builder> timeout)
The timeout configuration for the job.
This is a convenience that creates an instance of theJobTimeout.Builder
avoiding the need to create
one manually via JobTimeout.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to timeout(JobTimeout)
.timeout
- a consumer that will call methods on JobTimeout.Builder
timeout(JobTimeout)
Copyright © 2020. All rights reserved.