Class DownloadRequest<ReturnT>
java.lang.Object
software.amazon.awssdk.transfer.s3.model.DownloadRequest<ReturnT>
- All Implemented Interfaces:
TransferObjectRequest
,TransferRequest
,ToCopyableBuilder<DownloadRequest.TypedBuilder<ReturnT>,
DownloadRequest<ReturnT>>
public final class DownloadRequest<ReturnT>
extends Object
implements TransferObjectRequest, ToCopyableBuilder<DownloadRequest.TypedBuilder<ReturnT>,DownloadRequest<ReturnT>>
Represents the request to download an object identified by the bucket and key from S3 through the given
AsyncResponseTransformer
. For
downloading to a file, you may use DownloadFileRequest
instead.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The type-parameterized version ofDownloadRequest.UntypedBuilder
.static interface
Initial calls tobuilder()
return anDownloadRequest.UntypedBuilder
, where the builder is not yet parameterized with the generic type associated withDownloadRequest
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder that can be used to create aDownloadRequest
.boolean
int
hashCode()
ThePath
to file that response contents will be written to.Take this object and create a builder that contains all of the current property values of this object.toString()
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
builder
Creates a builder that can be used to create aDownloadRequest
.- See Also:
-
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<DownloadRequest.TypedBuilder<ReturnT>,
DownloadRequest<ReturnT>> - Returns:
- a builder for type T
-
responseTransformer
ThePath
to file that response contents will be written to. The file must not exist or this method will throw an exception. If the file is not writable by the current user then an exception will be thrown.- Returns:
- the destination path
-
getObjectRequest
- Returns:
- The
GetObjectRequest
request that should be used for the download
-
transferListeners
- Specified by:
transferListeners
in interfaceTransferObjectRequest
- Returns:
- the List of transferListeners.
- See Also:
-
equals
-
hashCode
-
toString
-