Class SubAsyncRequestBodyConfiguration.Builder
java.lang.Object
software.amazon.awssdk.core.internal.async.SubAsyncRequestBodyConfiguration.Builder
- Enclosing class:
SubAsyncRequestBodyConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSubAsyncRequestBodyConfiguration
object based on the values held by this builder.contentLengthKnown
(Boolean contentLengthKnown) Sets whether the content length is known.Sets the maximum length of the content this AsyncRequestBody can hold.onNumBytesConsumed
(Consumer<Long> onNumBytesConsumed) Sets the callback to be invoked when bytes are consumed.onNumBytesReceived
(Consumer<Long> onNumBytesReceived) Sets the callback to be invoked when bytes are received.partNumber
(Integer partNumber) Sets the part number for this request body.sourceBodyName
(String sourceBodyName) Sets the source body name for identification.
-
Method Details
-
contentLengthKnown
Sets whether the content length is known. -
maxLength
Sets the maximum length of the content this AsyncRequestBody can hold. -
partNumber
Sets the part number for this request body. -
onNumBytesReceived
public SubAsyncRequestBodyConfiguration.Builder onNumBytesReceived(Consumer<Long> onNumBytesReceived) Sets the callback to be invoked when bytes are received. -
onNumBytesConsumed
public SubAsyncRequestBodyConfiguration.Builder onNumBytesConsumed(Consumer<Long> onNumBytesConsumed) Sets the callback to be invoked when bytes are consumed. -
sourceBodyName
Sets the source body name for identification. -
build
Builds aSubAsyncRequestBodyConfiguration
object based on the values held by this builder.
-