Interface CancelJobsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BatchRequest.Builder,Buildable,CopyableBuilder<CancelJobsRequest.Builder,,CancelJobsRequest> SdkBuilder<CancelJobsRequest.Builder,,CancelJobsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
- CancelJobsRequest
@Mutable
@NotThreadSafe
public static interface CancelJobsRequest.Builder
extends BatchRequest.Builder, SdkPojo, CopyableBuilder<CancelJobsRequest.Builder,CancelJobsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionAn array of up to 50 Batch job IDs of the jobs to cancel.jobs(Collection<String> jobs) An array of up to 50 Batch job IDs of the jobs to cancel.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) A message to attach to the job that explains the reason for cancelling it.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.batch.model.BatchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
jobs
An array of up to 50 Batch job IDs of the jobs to cancel.
- Parameters:
jobs- An array of up to 50 Batch job IDs of the jobs to cancel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobs
An array of up to 50 Batch job IDs of the jobs to cancel.
- Parameters:
jobs- An array of up to 50 Batch job IDs of the jobs to cancel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
A message to attach to the job that explains the reason for cancelling it. This message is returned by future DescribeJobs operations on the job. It is also recorded in the Batch activity logs.
This parameter has a limit of 1024 characters.
- Parameters:
reason- A message to attach to the job that explains the reason for cancelling it. This message is returned by future DescribeJobs operations on the job. It is also recorded in the Batch activity logs.This parameter has a limit of 1024 characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CancelJobsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CancelJobsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-