public static interface JobDetail.Builder extends CopyableBuilder<JobDetail.Builder,JobDetail>
Modifier and Type | Method and Description |
---|---|
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 for when the job was created (when the task entered the
PENDING state). |
JobDetail.Builder |
dependsOn(Collection<JobDependency> dependsOn)
A list of job names or IDs on which this job depends.
|
JobDetail.Builder |
dependsOn(Consumer<JobDependency.Builder>... dependsOn)
A list of job names or IDs on which this job depends.
|
JobDetail.Builder |
dependsOn(JobDependency... dependsOn)
A list of job names or 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.
|
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 for when the job was started (when the task transitioned from the
PENDING
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 for when the job was stopped (when the task transitioned from the
RUNNING
state to the STOPPED state). |
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.
JobDetail.Builder status(JobStatus status)
The current status for the job.
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 for when the job was created (when the task entered the PENDING
state).
createdAt
- The Unix timestamp for when the job was created (when the task 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 for when the job was started (when the task transitioned from the PENDING
state to the RUNNING
state).
startedAt
- The Unix timestamp for when the job was started (when the task transitioned from the
PENDING
state to the RUNNING
state).JobDetail.Builder stoppedAt(Long stoppedAt)
The Unix timestamp for when the job was stopped (when the task transitioned from the RUNNING
state to the STOPPED
state).
stoppedAt
- The Unix timestamp for when the job was stopped (when the task transitioned from the
RUNNING
state to the STOPPED
state).JobDetail.Builder dependsOn(Collection<JobDependency> dependsOn)
A list of job names or IDs on which this job depends.
dependsOn
- A list of job names or IDs on which this job depends.JobDetail.Builder dependsOn(JobDependency... dependsOn)
A list of job names or IDs on which this job depends.
dependsOn
- A list of job names or IDs on which this job depends.JobDetail.Builder dependsOn(Consumer<JobDependency.Builder>... dependsOn)
A list of job names or 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)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.