Interface JobDetail.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<JobDetail.Builder,
,JobDetail> SdkBuilder<JobDetail.Builder,
,JobDetail> SdkPojo
- Enclosing class:
JobDetail
-
Method Summary
Modifier and TypeMethodDescriptiondefault JobDetail.Builder
arrayProperties
(Consumer<ArrayPropertiesDetail.Builder> arrayProperties) The array properties of the job, if it's an array job.arrayProperties
(ArrayPropertiesDetail arrayProperties) The array properties of the job, if it's an array job.attempts
(Collection<AttemptDetail> attempts) A list of job attempts that are associated with this job.attempts
(Consumer<AttemptDetail.Builder>... attempts) A list of job attempts that are associated with this job.attempts
(AttemptDetail... attempts) A list of job attempts that are associated with this job.default JobDetail.Builder
container
(Consumer<ContainerDetail.Builder> container) An object that represents the details for the container that's associated with the job.container
(ContainerDetail container) An object that represents the details for the container that's associated with the job.The Unix timestamp (in milliseconds) for when the job was created.dependsOn
(Collection<JobDependency> dependsOn) A list of job IDs that this job depends on.dependsOn
(Consumer<JobDependency.Builder>... dependsOn) A list of job IDs that this job depends on.dependsOn
(JobDependency... dependsOn) A list of job IDs that this job depends on.default JobDetail.Builder
ecsProperties
(Consumer<EcsPropertiesDetail.Builder> ecsProperties) An object with properties that are specific to Amazon ECS-based jobs.ecsProperties
(EcsPropertiesDetail ecsProperties) An object with properties that are specific to Amazon ECS-based jobs.eksAttempts
(Collection<EksAttemptDetail> eksAttempts) A list of job attempts that are associated with this job.eksAttempts
(Consumer<EksAttemptDetail.Builder>... eksAttempts) A list of job attempts that are associated with this job.eksAttempts
(EksAttemptDetail... eksAttempts) A list of job attempts that are associated with this job.default JobDetail.Builder
eksProperties
(Consumer<EksPropertiesDetail.Builder> eksProperties) An object with various properties that are specific to Amazon EKS based jobs.eksProperties
(EksPropertiesDetail eksProperties) An object with various properties that are specific to Amazon EKS based jobs.isCancelled
(Boolean isCancelled) Indicates whether the job is canceled.isTerminated
(Boolean isTerminated) Indicates whether the job is terminated.The Amazon Resource Name (ARN) of the job.jobDefinition
(String jobDefinition) The Amazon Resource Name (ARN) of the job definition that this job uses.The job ID.The job name.The Amazon Resource Name (ARN) of the job queue that the job is associated with.default JobDetail.Builder
nodeDetails
(Consumer<NodeDetails.Builder> nodeDetails) An object that represents the details of a node that's associated with a multi-node parallel job.nodeDetails
(NodeDetails nodeDetails) An object that represents the details of a node that's associated with a multi-node parallel job.default JobDetail.Builder
nodeProperties
(Consumer<NodeProperties.Builder> nodeProperties) An object that represents the node properties of a multi-node parallel job.nodeProperties
(NodeProperties nodeProperties) An object that represents the node properties of a multi-node parallel job.parameters
(Map<String, String> parameters) Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.platformCapabilities
(Collection<PlatformCapability> platformCapabilities) The platform capabilities required by the job definition.platformCapabilities
(PlatformCapability... platformCapabilities) The platform capabilities required by the job definition.platformCapabilitiesWithStrings
(String... platformCapabilities) The platform capabilities required by the job definition.platformCapabilitiesWithStrings
(Collection<String> platformCapabilities) The platform capabilities required by the job definition.propagateTags
(Boolean propagateTags) Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.default JobDetail.Builder
retryStrategy
(Consumer<RetryStrategy.Builder> retryStrategy) The retry strategy to use for this job if an attempt fails.retryStrategy
(RetryStrategy retryStrategy) The retry strategy to use for this job if an attempt fails.schedulingPriority
(Integer schedulingPriority) The scheduling policy of the job definition.shareIdentifier
(String shareIdentifier) The share identifier for the job.The Unix timestamp (in milliseconds) for when the job was started.The current status for the job.The current status for the job.statusReason
(String statusReason) A short, human-readable string to provide more details for the current status of the job.The Unix timestamp (in milliseconds) for when the job was stopped.The tags that are applied to the job.default JobDetail.Builder
timeout
(Consumer<JobTimeout.Builder> timeout) The timeout configuration for the job.timeout
(JobTimeout timeout) The timeout configuration for the job.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
jobArn
The Amazon Resource Name (ARN) of the job.
- Parameters:
jobArn
- The Amazon Resource Name (ARN) of the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobName
The job name.
- Parameters:
jobName
- The job name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobId
The job ID.
- Parameters:
jobId
- The job ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobQueue
The Amazon Resource Name (ARN) of the job queue that the job is associated with.
- Parameters:
jobQueue
- The Amazon Resource Name (ARN) of the job queue that the job is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 Batch User Guide.- Parameters:
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 Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 Batch User Guide.- Parameters:
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 Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schedulingPriority
The scheduling policy of the 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.
- Parameters:
schedulingPriority
- The scheduling policy of the 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attempts
A list of job attempts that are associated with this job.
- Parameters:
attempts
- A list of job attempts that are associated with this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attempts
A list of job attempts that are associated with this job.
- Parameters:
attempts
- A list of job attempts that are associated with this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attempts
A list of job attempts that are associated with this job.
This is a convenience method that creates an instance of theAttemptDetail.Builder
avoiding the need to create one manually viaAttemptDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattempts(List<AttemptDetail>)
.- Parameters:
attempts
- a consumer that will call methods onAttemptDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReason
A short, human-readable string to provide more details for the current status of the job.
-
CAPACITY:INSUFFICIENT_INSTANCE_CAPACITY
- All compute environments have insufficient capacity to service the job. -
MISCONFIGURATION:COMPUTE_ENVIRONMENT_MAX_RESOURCE
- All compute environments have amaxVcpu
setting that is smaller than the job requirements. -
MISCONFIGURATION:JOB_RESOURCE_REQUIREMENT
- All compute environments have no connected instances that meet the job requirements. -
MISCONFIGURATION:SERVICE_ROLE_PERMISSIONS
- All compute environments have problems with the service role permissions.
- Parameters:
statusReason
- A short, human-readable string to provide more details for the current status of the job.-
CAPACITY:INSUFFICIENT_INSTANCE_CAPACITY
- All compute environments have insufficient capacity to service the job. -
MISCONFIGURATION:COMPUTE_ENVIRONMENT_MAX_RESOURCE
- All compute environments have amaxVcpu
setting that is smaller than the job requirements. -
MISCONFIGURATION:JOB_RESOURCE_REQUIREMENT
- All compute environments have no connected instances that meet the job requirements. -
MISCONFIGURATION:SERVICE_ROLE_PERMISSIONS
- All compute environments have problems with the service role permissions.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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. This is specifically at the time SubmitJob was called. For array child jobs, this is when the child job was spawned by its parent and entered thePENDING
state.- Parameters:
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 theSUBMITTED
state. This is specifically at the time SubmitJob was called. For array child jobs, this is when the child job was spawned by its parent and entered thePENDING
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryStrategy
The retry strategy to use for this job if an attempt fails.
- Parameters:
retryStrategy
- The retry strategy to use for this job if an attempt fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryStrategy
The retry strategy to use for this job if an attempt fails.
This is a convenience method that creates an instance of theRetryStrategy.Builder
avoiding the need to create one manually viaRetryStrategy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toretryStrategy(RetryStrategy)
.- Parameters:
retryStrategy
- a consumer that will call methods onRetryStrategy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startedAt
The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's when the job transitioned from the
STARTING
state to theRUNNING
state.- Parameters:
startedAt
- The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's when the job transitioned from theSTARTING
state to theRUNNING
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppedAt
The Unix timestamp (in milliseconds) for when the job was stopped. More specifically, it's when the job transitioned from the
RUNNING
state to a terminal state, such asSUCCEEDED
orFAILED
.- Parameters:
stoppedAt
- The Unix timestamp (in milliseconds) for when the job was stopped. More specifically, it's when the job transitioned from theRUNNING
state to a terminal state, such asSUCCEEDED
orFAILED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
A list of job IDs that this job depends on.
- Parameters:
dependsOn
- A list of job IDs that this job depends on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
A list of job IDs that this job depends on.
- Parameters:
dependsOn
- A list of job IDs that this job depends on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
A list of job IDs that this job depends on.
This is a convenience method that creates an instance of theJobDependency.Builder
avoiding the need to create one manually viaJobDependency.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todependsOn(List<JobDependency>)
.- Parameters:
dependsOn
- a consumer that will call methods onJobDependency.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobDefinition
The Amazon Resource Name (ARN) of the job definition that this job uses.
- Parameters:
jobDefinition
- The Amazon Resource Name (ARN) of the job definition that this job uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.
- Parameters:
parameters
- Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
container
An object that represents the details for the container that's associated with the job. If the details are for a multiple-container job, this object will be empty.
- Parameters:
container
- An object that represents the details for the container that's associated with the job. If the details are for a multiple-container job, this object will be empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
container
An object that represents the details for the container that's associated with the job. If the details are for a multiple-container job, this object will be empty.
This is a convenience method that creates an instance of theContainerDetail.Builder
avoiding the need to create one manually viaContainerDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainer(ContainerDetail)
.- Parameters:
container
- a consumer that will call methods onContainerDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nodeDetails
An object that represents the details of a node that's associated with a multi-node parallel job.
- Parameters:
nodeDetails
- An object that represents the details of a node that's associated with a multi-node parallel job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeDetails
An object that represents the details of a node that's associated with a multi-node parallel job.
This is a convenience method that creates an instance of theNodeDetails.Builder
avoiding the need to create one manually viaNodeDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonodeDetails(NodeDetails)
.- Parameters:
nodeDetails
- a consumer that will call methods onNodeDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nodeProperties
An object that represents the node properties of a multi-node parallel job.
This isn't applicable to jobs that are running on Fargate resources.
- Parameters:
nodeProperties
- An object that represents the node properties of a multi-node parallel job.This isn't applicable to jobs that are running on Fargate resources.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeProperties
An object that represents the node properties of a multi-node parallel job.
This isn't applicable to jobs that are running on Fargate resources.
NodeProperties.Builder
avoiding the need to create one manually viaNodeProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonodeProperties(NodeProperties)
.- Parameters:
nodeProperties
- a consumer that will call methods onNodeProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arrayProperties
The array properties of the job, if it's an array job.
- Parameters:
arrayProperties
- The array properties of the job, if it's an array job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arrayProperties
The array properties of the job, if it's an array job.
This is a convenience method that creates an instance of theArrayPropertiesDetail.Builder
avoiding the need to create one manually viaArrayPropertiesDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toarrayProperties(ArrayPropertiesDetail)
.- Parameters:
arrayProperties
- a consumer that will call methods onArrayPropertiesDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeout
The timeout configuration for the job.
- Parameters:
timeout
- The timeout configuration for the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
The timeout configuration for the job.
This is a convenience method that creates an instance of theJobTimeout.Builder
avoiding the need to create one manually viaJobTimeout.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeout(JobTimeout)
.- Parameters:
timeout
- a consumer that will call methods onJobTimeout.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags that are applied to the job.
- Parameters:
tags
- The tags that are applied to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 when the tasks are created. 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.- Parameters:
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 when the tasks are created. 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 theFAILED
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformCapabilitiesWithStrings
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specifyFARGATE
.- Parameters:
platformCapabilities
- The platform capabilities required by the job definition. If no value is specified, it defaults toEC2
. Jobs run on Fargate resources specifyFARGATE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformCapabilitiesWithStrings
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specifyFARGATE
.- Parameters:
platformCapabilities
- The platform capabilities required by the job definition. If no value is specified, it defaults toEC2
. Jobs run on Fargate resources specifyFARGATE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformCapabilities
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specifyFARGATE
.- Parameters:
platformCapabilities
- The platform capabilities required by the job definition. If no value is specified, it defaults toEC2
. Jobs run on Fargate resources specifyFARGATE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformCapabilities
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specifyFARGATE
.- Parameters:
platformCapabilities
- The platform capabilities required by the job definition. If no value is specified, it defaults toEC2
. Jobs run on Fargate resources specifyFARGATE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eksProperties
An object with various properties that are specific to Amazon EKS based jobs.
- Parameters:
eksProperties
- An object with various properties that are specific to Amazon EKS based jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eksProperties
An object with various properties that are specific to Amazon EKS based jobs.
This is a convenience method that creates an instance of theEksPropertiesDetail.Builder
avoiding the need to create one manually viaEksPropertiesDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeksProperties(EksPropertiesDetail)
.- Parameters:
eksProperties
- a consumer that will call methods onEksPropertiesDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eksAttempts
A list of job attempts that are associated with this job.
- Parameters:
eksAttempts
- A list of job attempts that are associated with this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eksAttempts
A list of job attempts that are associated with this job.
- Parameters:
eksAttempts
- A list of job attempts that are associated with this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eksAttempts
A list of job attempts that are associated with this job.
This is a convenience method that creates an instance of theEksAttemptDetail.Builder
avoiding the need to create one manually viaEksAttemptDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeksAttempts(List<EksAttemptDetail>)
.- Parameters:
eksAttempts
- a consumer that will call methods onEksAttemptDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ecsProperties
An object with properties that are specific to Amazon ECS-based jobs.
- Parameters:
ecsProperties
- An object with properties that are specific to Amazon ECS-based jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecsProperties
An object with properties that are specific to Amazon ECS-based jobs.
This is a convenience method that creates an instance of theEcsPropertiesDetail.Builder
avoiding the need to create one manually viaEcsPropertiesDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toecsProperties(EcsPropertiesDetail)
.- Parameters:
ecsProperties
- a consumer that will call methods onEcsPropertiesDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isCancelled
Indicates whether the job is canceled.
- Parameters:
isCancelled
- Indicates whether the job is canceled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isTerminated
Indicates whether the job is terminated.
- Parameters:
isTerminated
- Indicates whether the job is terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-