Package software.amazon.awssdk.core
Class FileRequestBodyConfiguration
- java.lang.Object
-
- software.amazon.awssdk.core.FileRequestBodyConfiguration
-
- All Implemented Interfaces:
ToCopyableBuilder<FileRequestBodyConfiguration.Builder,FileRequestBodyConfiguration>
public final class FileRequestBodyConfiguration extends Object implements ToCopyableBuilder<FileRequestBodyConfiguration.Builder,FileRequestBodyConfiguration>
Configuration options forAsyncRequestBody.fromFile(FileRequestBodyConfiguration)
to configure how the SDK should read the file.- See Also:
builder()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FileRequestBodyConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileRequestBodyConfiguration.Builder
builder()
Create aFileRequestBodyConfiguration.Builder
, used to create aFileRequestBodyConfiguration
.Integer
chunkSizeInBytes()
boolean
equals(Object o)
int
hashCode()
Long
numBytesToRead()
Path
path()
Long
position()
FileRequestBodyConfiguration.Builder
toBuilder()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
builder
public static FileRequestBodyConfiguration.Builder builder()
Create aFileRequestBodyConfiguration.Builder
, used to create aFileRequestBodyConfiguration
.
-
chunkSizeInBytes
public Integer chunkSizeInBytes()
- Returns:
- the size of each chunk to read from the file
-
position
public Long position()
- Returns:
- the file position at which the request body begins.
-
numBytesToRead
public Long numBytesToRead()
- Returns:
- the number of bytes to read from this file.
-
path
public Path path()
- Returns:
- the file path
-
toBuilder
public FileRequestBodyConfiguration.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<FileRequestBodyConfiguration.Builder,FileRequestBodyConfiguration>
-
-