Interface AsyncRequestBodyFromInputStreamConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AsyncRequestBodyFromInputStreamConfiguration.Builder,
,AsyncRequestBodyFromInputStreamConfiguration> SdkBuilder<AsyncRequestBodyFromInputStreamConfiguration.Builder,
AsyncRequestBodyFromInputStreamConfiguration>
- Enclosing class:
AsyncRequestBodyFromInputStreamConfiguration
public static interface AsyncRequestBodyFromInputStreamConfiguration.Builder
extends CopyableBuilder<AsyncRequestBodyFromInputStreamConfiguration.Builder,AsyncRequestBodyFromInputStreamConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptioncontentLength
(Long contentLength) Configures the length of the providedInputStream
executor
(ExecutorService executor) Configures theExecutorService
to perform the blocking data reads.inputStream
(InputStream inputStream) Configures the InputStream.maxReadLimit
(Integer maxReadLimit) Configures max read limit used to mark and reset theInputStream
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Method Details
-
inputStream
Configures the InputStream.- Parameters:
inputStream
- the InputStream- Returns:
- This object for method chaining.
-
contentLength
Configures the length of the providedInputStream
- Parameters:
contentLength
- the content length- Returns:
- This object for method chaining.
-
executor
Configures theExecutorService
to perform the blocking data reads.- Parameters:
executor
- the executor- Returns:
- This object for method chaining.
-
maxReadLimit
Configures max read limit used to mark and reset theInputStream
. This will have no effect if the stream doesn't support mark and reset.By default, it is 128 KiB.
- Parameters:
maxReadLimit
- the max read limit- Returns:
- This object for method chaining.
- See Also:
-