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