Interface ChecksumCalculatingAsyncRequestBody.Builder

  • 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

      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 wrapped AsyncRequestBody. Take precedence over content length specified in the AsyncRequestBody, 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.