Interface TerminateJobsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BatchResponse.Builder,Buildable,CopyableBuilder<TerminateJobsResponse.Builder,,TerminateJobsResponse> SdkBuilder<TerminateJobsResponse.Builder,,TerminateJobsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
TerminateJobsResponse
-
Method Summary
Modifier and TypeMethodDescriptionerrors(Collection<TerminateJobsErrorDetail> errors) A list ofTerminateJobsErrorDetailitems, one for each job that couldn't be terminated.errors(Consumer<TerminateJobsErrorDetail.Builder>... errors) A list ofTerminateJobsErrorDetailitems, one for each job that couldn't be terminated.errors(TerminateJobsErrorDetail... errors) A list ofTerminateJobsErrorDetailitems, one for each job that couldn't be terminated.successful(String... successful) A list of the job IDs whose termination request was accepted.successful(Collection<String> successful) A list of the job IDs whose termination 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 termination request was accepted.
- Parameters:
successful- A list of the job IDs whose termination 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 termination request was accepted.
- Parameters:
successful- A list of the job IDs whose termination request was accepted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
A list of
TerminateJobsErrorDetailitems, one for each job that couldn't be terminated. Each item includes the job ID along with a code and message that describe why the job wasn't terminated.- Parameters:
errors- A list ofTerminateJobsErrorDetailitems, one for each job that couldn't be terminated. Each item includes the job ID along with a code and message that describe why the job wasn't terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
A list of
TerminateJobsErrorDetailitems, one for each job that couldn't be terminated. Each item includes the job ID along with a code and message that describe why the job wasn't terminated.- Parameters:
errors- A list ofTerminateJobsErrorDetailitems, one for each job that couldn't be terminated. Each item includes the job ID along with a code and message that describe why the job wasn't terminated.- 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 theTerminateJobsErrorDetailitems, one for each job that couldn't be terminated. Each item includes the job ID along with a code and message that describe why the job wasn't terminated.TerminateJobsErrorDetail.Builderavoiding the need to create one manually viaTerminateJobsErrorDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<TerminateJobsErrorDetail>).- Parameters:
errors- a consumer that will call methods onTerminateJobsErrorDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-