Interface BatchReadOperationResponse.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BatchReadOperationResponse.Builder,
,BatchReadOperationResponse> SdkBuilder<BatchReadOperationResponse.Builder,
,BatchReadOperationResponse> SdkPojo
- Enclosing class:
BatchReadOperationResponse
public static interface BatchReadOperationResponse.Builder
extends SdkPojo, CopyableBuilder<BatchReadOperationResponse.Builder,BatchReadOperationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionexceptionResponse
(Consumer<BatchReadException.Builder> exceptionResponse) Identifies which operation in a batch has failed.exceptionResponse
(BatchReadException exceptionResponse) Identifies which operation in a batch has failed.successfulResponse
(Consumer<BatchReadSuccessfulResponse.Builder> successfulResponse) Identifies which operation in a batch has succeeded.successfulResponse
(BatchReadSuccessfulResponse successfulResponse) Identifies which operation in a batch has succeeded.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
-
successfulResponse
BatchReadOperationResponse.Builder successfulResponse(BatchReadSuccessfulResponse successfulResponse) Identifies which operation in a batch has succeeded.
- Parameters:
successfulResponse
- Identifies which operation in a batch has succeeded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successfulResponse
default BatchReadOperationResponse.Builder successfulResponse(Consumer<BatchReadSuccessfulResponse.Builder> successfulResponse) Identifies which operation in a batch has succeeded.
This is a convenience method that creates an instance of theBatchReadSuccessfulResponse.Builder
avoiding the need to create one manually viaBatchReadSuccessfulResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuccessfulResponse(BatchReadSuccessfulResponse)
.- Parameters:
successfulResponse
- a consumer that will call methods onBatchReadSuccessfulResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
exceptionResponse
Identifies which operation in a batch has failed.
- Parameters:
exceptionResponse
- Identifies which operation in a batch has failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exceptionResponse
default BatchReadOperationResponse.Builder exceptionResponse(Consumer<BatchReadException.Builder> exceptionResponse) Identifies which operation in a batch has failed.
This is a convenience method that creates an instance of theBatchReadException.Builder
avoiding the need to create one manually viaBatchReadException.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexceptionResponse(BatchReadException)
.- Parameters:
exceptionResponse
- a consumer that will call methods onBatchReadException.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-