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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncRequestBodyFromInputStreamConfiguration.BuildercontentLength(Long contentLength)Configures the length of the providedInputStreamAsyncRequestBodyFromInputStreamConfiguration.Builderexecutor(ExecutorService executor)Configures theExecutorServiceto perform the blocking data reads.AsyncRequestBodyFromInputStreamConfiguration.BuilderinputStream(InputStream inputStream)Configures the InputStream.AsyncRequestBodyFromInputStreamConfiguration.BuildermaxReadLimit(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 Detail
-
inputStream
AsyncRequestBodyFromInputStreamConfiguration.Builder inputStream(InputStream inputStream)
Configures the InputStream.- Parameters:
inputStream- the InputStream- Returns:
- This object for method chaining.
-
contentLength
AsyncRequestBodyFromInputStreamConfiguration.Builder contentLength(Long contentLength)
Configures the length of the providedInputStream- Parameters:
contentLength- the content length- Returns:
- This object for method chaining.
-
executor
AsyncRequestBodyFromInputStreamConfiguration.Builder executor(ExecutorService executor)
Configures theExecutorServiceto perform the blocking data reads.- Parameters:
executor- the executor- Returns:
- This object for method chaining.
-
maxReadLimit
AsyncRequestBodyFromInputStreamConfiguration.Builder maxReadLimit(Integer 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:
InputStream.mark(int)
-
-