Class SubAsyncRequestBodyConfiguration.Builder
- java.lang.Object
-
- software.amazon.awssdk.core.internal.async.SubAsyncRequestBodyConfiguration.Builder
-
- Enclosing class:
- SubAsyncRequestBodyConfiguration
public static final class SubAsyncRequestBodyConfiguration.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubAsyncRequestBodyConfigurationbuild()Builds aSubAsyncRequestBodyConfigurationobject based on the values held by this builder.SubAsyncRequestBodyConfiguration.BuildercontentLengthKnown(Boolean contentLengthKnown)Sets whether the content length is known.SubAsyncRequestBodyConfiguration.BuildermaxLength(Long maxLength)Sets the maximum length of the content this AsyncRequestBody can hold.SubAsyncRequestBodyConfiguration.BuilderonNumBytesConsumed(Consumer<Long> onNumBytesConsumed)Sets the callback to be invoked when bytes are consumed.SubAsyncRequestBodyConfiguration.BuilderonNumBytesReceived(Consumer<Long> onNumBytesReceived)Sets the callback to be invoked when bytes are received.SubAsyncRequestBodyConfiguration.BuilderpartNumber(Integer partNumber)Sets the part number for this request body.SubAsyncRequestBodyConfiguration.BuildersourceBodyName(String sourceBodyName)Sets the source body name for identification.
-
-
-
Method Detail
-
contentLengthKnown
public SubAsyncRequestBodyConfiguration.Builder contentLengthKnown(Boolean contentLengthKnown)
Sets whether the content length is known.
-
maxLength
public SubAsyncRequestBodyConfiguration.Builder maxLength(Long maxLength)
Sets the maximum length of the content this AsyncRequestBody can hold.
-
partNumber
public SubAsyncRequestBodyConfiguration.Builder partNumber(Integer 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
public SubAsyncRequestBodyConfiguration.Builder sourceBodyName(String sourceBodyName)
Sets the source body name for identification.
-
build
public SubAsyncRequestBodyConfiguration build()
Builds aSubAsyncRequestBodyConfigurationobject based on the values held by this builder.
-
-