Interface ChecksumCalculatingAsyncRequestBody.Builder
- All Superinterfaces:
Buildable
,SdkBuilder<ChecksumCalculatingAsyncRequestBody.Builder,
ChecksumCalculatingAsyncRequestBody>
- Enclosing class:
ChecksumCalculatingAsyncRequestBody
public static interface ChecksumCalculatingAsyncRequestBody.Builder
extends SdkBuilder<ChecksumCalculatingAsyncRequestBody.Builder,ChecksumCalculatingAsyncRequestBody>
-
Method Summary
Modifier and TypeMethodDescriptionalgorithm
(ChecksumAlgorithm algorithm) Sets the checksum algorithm.asyncRequestBody
(AsyncRequestBody asyncRequestBody) Sets the AsyncRequestBody that will be wrapped.contentLengthHeader
(Long contentLengthHeader) Optional.trailerHeader
(String trailerHeader) Sets the Trailer header where computed SdkChecksum will be updated.Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Method Details
-
asyncRequestBody
Sets the AsyncRequestBody that will be wrapped.- Parameters:
asyncRequestBody
- AsyncRequestBody.- Returns:
- This builder for method chaining.
-
algorithm
Sets the checksum algorithm.- Parameters:
algorithm
- algorithm that is used to compute the checksum.- Returns:
- This builder for method chaining.
-
trailerHeader
Sets the Trailer header where computed SdkChecksum will be updated.- Parameters:
trailerHeader
- Trailer header name which will be appended at the end of the string.- Returns:
- This builder for method chaining.
-
contentLengthHeader
Optional. The Content-Length header as specified on the request object. Will stop calculating checksum once this amount of bytes is read from the wrappedAsyncRequestBody
. Take precedence over content length specified in theAsyncRequestBody
, if both are present and different.- Parameters:
contentLengthHeader
- the value of the Content-Length header of the http request.- Returns:
- This builder for method chaining.
-