Interface PutRecordBatchResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutRecordBatchResponse.Builder,PutRecordBatchResponse>,FirehoseResponse.Builder,SdkBuilder<PutRecordBatchResponse.Builder,PutRecordBatchResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- PutRecordBatchResponse
public static interface PutRecordBatchResponse.Builder extends FirehoseResponse.Builder, SdkPojo, CopyableBuilder<PutRecordBatchResponse.Builder,PutRecordBatchResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutRecordBatchResponse.Builderencrypted(Boolean encrypted)Indicates whether server-side encryption (SSE) was enabled during this operation.PutRecordBatchResponse.BuilderfailedPutCount(Integer failedPutCount)The number of records that might have failed processing.PutRecordBatchResponse.BuilderrequestResponses(Collection<PutRecordBatchResponseEntry> requestResponses)The results array.PutRecordBatchResponse.BuilderrequestResponses(Consumer<PutRecordBatchResponseEntry.Builder>... requestResponses)The results array.PutRecordBatchResponse.BuilderrequestResponses(PutRecordBatchResponseEntry... requestResponses)The results array.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.firehose.model.FirehoseResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
failedPutCount
PutRecordBatchResponse.Builder failedPutCount(Integer failedPutCount)
The number of records that might have failed processing. This number might be greater than 0 even if the PutRecordBatch call succeeds. Check
FailedPutCountto determine whether there are records that you need to resend.- Parameters:
failedPutCount- The number of records that might have failed processing. This number might be greater than 0 even if the PutRecordBatch call succeeds. CheckFailedPutCountto determine whether there are records that you need to resend.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
PutRecordBatchResponse.Builder encrypted(Boolean encrypted)
Indicates whether server-side encryption (SSE) was enabled during this operation.
- Parameters:
encrypted- Indicates whether server-side encryption (SSE) was enabled during this operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestResponses
PutRecordBatchResponse.Builder requestResponses(Collection<PutRecordBatchResponseEntry> requestResponses)
The results array. For each record, the index of the response element is the same as the index used in the request array.
- Parameters:
requestResponses- The results array. For each record, the index of the response element is the same as the index used in the request array.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestResponses
PutRecordBatchResponse.Builder requestResponses(PutRecordBatchResponseEntry... requestResponses)
The results array. For each record, the index of the response element is the same as the index used in the request array.
- Parameters:
requestResponses- The results array. For each record, the index of the response element is the same as the index used in the request array.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestResponses
PutRecordBatchResponse.Builder requestResponses(Consumer<PutRecordBatchResponseEntry.Builder>... requestResponses)
The results array. For each record, the index of the response element is the same as the index used in the request array.
This is a convenience method that creates an instance of thePutRecordBatchResponseEntry.Builderavoiding the need to create one manually viaPutRecordBatchResponseEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#requestResponses(List.) - Parameters:
requestResponses- a consumer that will call methods onPutRecordBatchResponseEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#requestResponses(java.util.Collection)
-
-