Interface CancelJobsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BatchResponse.Builder,Buildable,CopyableBuilder<CancelJobsResponse.Builder,,CancelJobsResponse> SdkBuilder<CancelJobsResponse.Builder,,CancelJobsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CancelJobsResponse
-
Method Summary
Modifier and TypeMethodDescriptionerrors(Collection<CancelJobsErrorDetail> errors) A list ofCancelJobsErrorDetailitems, one for each job that couldn't be cancelled.errors(Consumer<CancelJobsErrorDetail.Builder>... errors) A list ofCancelJobsErrorDetailitems, one for each job that couldn't be cancelled.errors(CancelJobsErrorDetail... errors) A list ofCancelJobsErrorDetailitems, one for each job that couldn't be cancelled.successful(String... successful) A list of the job IDs whose cancellation request was accepted.successful(Collection<String> successful) A list of the job IDs whose cancellation request was accepted.Methods inherited from interface software.amazon.awssdk.services.batch.model.BatchResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
successful
A list of the job IDs whose cancellation request was accepted.
- Parameters:
successful- A list of the job IDs whose cancellation request was accepted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successful
A list of the job IDs whose cancellation request was accepted.
- Parameters:
successful- A list of the job IDs whose cancellation request was accepted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
A list of
CancelJobsErrorDetailitems, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.- Parameters:
errors- A list ofCancelJobsErrorDetailitems, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
A list of
CancelJobsErrorDetailitems, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.- Parameters:
errors- A list ofCancelJobsErrorDetailitems, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
A list of
This is a convenience method that creates an instance of theCancelJobsErrorDetailitems, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.CancelJobsErrorDetail.Builderavoiding the need to create one manually viaCancelJobsErrorDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<CancelJobsErrorDetail>).- Parameters:
errors- a consumer that will call methods onCancelJobsErrorDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-