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