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 for
AsyncRequestBody.fromFile(FileRequestBodyConfiguration)
to configure how the SDK
should read the file.- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create aFileRequestBodyConfiguration.Builder
, used to create aFileRequestBodyConfiguration
.boolean
int
hashCode()
path()
position()
Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
builder
Create aFileRequestBodyConfiguration.Builder
, used to create aFileRequestBodyConfiguration
. -
chunkSizeInBytes
- Returns:
- the size of each chunk to read from the file
-
position
- Returns:
- the file position at which the request body begins.
-
numBytesToRead
- Returns:
- the number of bytes to read from this file.
-
path
- Returns:
- the file path
-
equals
-
hashCode
public int hashCode() -
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<FileRequestBodyConfiguration.Builder,
FileRequestBodyConfiguration> - Returns:
- a builder for type T
-