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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChecksumCalculatingAsyncRequestBody.Builderalgorithm(ChecksumAlgorithm algorithm)Sets the checksum algorithm.ChecksumCalculatingAsyncRequestBody.BuilderasyncRequestBody(AsyncRequestBody asyncRequestBody)Sets the AsyncRequestBody that will be wrapped.ChecksumCalculatingAsyncRequestBody.BuildercontentLengthHeader(Long contentLengthHeader)Optional.ChecksumCalculatingAsyncRequestBody.BuildertrailerHeader(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 Detail
-
asyncRequestBody
ChecksumCalculatingAsyncRequestBody.Builder asyncRequestBody(AsyncRequestBody asyncRequestBody)
Sets the AsyncRequestBody that will be wrapped.- Parameters:
asyncRequestBody- AsyncRequestBody.- Returns:
- This builder for method chaining.
-
algorithm
ChecksumCalculatingAsyncRequestBody.Builder algorithm(ChecksumAlgorithm algorithm)
Sets the checksum algorithm.- Parameters:
algorithm- algorithm that is used to compute the checksum.- Returns:
- This builder for method chaining.
-
trailerHeader
ChecksumCalculatingAsyncRequestBody.Builder trailerHeader(String 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
ChecksumCalculatingAsyncRequestBody.Builder contentLengthHeader(Long 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.
-
-