public static interface FileRequestBodyConfiguration.Builder extends CopyableBuilder<FileRequestBodyConfiguration.Builder,FileRequestBodyConfiguration>
Modifier and Type | Method and Description |
---|---|
FileRequestBodyConfiguration.Builder |
chunkSizeInBytes(Integer chunkSize)
Sets the size of chunks read from the file.
|
FileRequestBodyConfiguration.Builder |
numBytesToRead(Long numBytesToRead)
Sets the number of bytes to read from this file.
|
FileRequestBodyConfiguration.Builder |
path(Path path)
Sets the
Path to the file containing data to send to the service |
FileRequestBodyConfiguration.Builder |
position(Long position)
Sets the file position at which the request body begins.
|
copy
applyMutation, build
FileRequestBodyConfiguration.Builder path(Path path)
Path
to the file containing data to send to the servicepath
- Path to file to read.FileRequestBodyConfiguration.Builder chunkSizeInBytes(Integer chunkSize)
The default chunk size is 16 KiB
chunkSize
- New chunk size in bytes.FileRequestBodyConfiguration.Builder position(Long position)
By default, it's 0, i.e., reading from the beginning.
position
- the position of the fileFileRequestBodyConfiguration.Builder numBytesToRead(Long numBytesToRead)
By default, it's same as the file length.
numBytesToRead
- number of bytes to readCopyright © 2023. All rights reserved.