CopyableBuilder<JobDetail.Builder,JobDetail>
, SdkBuilder<JobDetail.Builder,JobDetail>
public static interface JobDetail.Builder extends CopyableBuilder<JobDetail.Builder,JobDetail>
Modifier and Type | Method | Description |
---|---|---|
JobDetail.Builder |
attempts(Collection<AttemptDetail> attempts) |
A list of job attempts associated with this job.
|
JobDetail.Builder |
attempts(AttemptDetail... attempts) |
A list of job attempts associated with this 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(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.
|
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(String status) |
The current status for the job.
|
JobDetail.Builder |
status(JobStatus 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
apply, 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.
status
- The current status for the job.JobStatus
JobDetail.Builder status(JobStatus status)
The current status for the job.
status
- The current status for the job.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.
NOTE: This method appends the values to the existing list (if any). Use
#setAttempts(java.util.Collection)
or #withAttempts(java.util.Collection)
if you want to
override the existing values.
attempts
- A list of job attempts associated with this job.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.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.
NOTE: This method appends the values to the existing list (if any). Use
#setDependsOn(java.util.Collection)
or #withDependsOn(java.util.Collection)
if you want to
override the existing values.
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.
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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.