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 interfaceThe type-parameterized version ofDownloadRequest.UntypedBuilder.static interfaceInitial 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.booleaninthashCode()ThePathto 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DownloadRequest.TypedBuilder<ReturnT>,DownloadRequest<ReturnT>> - Returns:
- a builder for type T
-
responseTransformer
ThePathto 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
GetObjectRequestrequest that should be used for the download
-
transferListeners
- Specified by:
transferListenersin interfaceTransferObjectRequest- Returns:
- the List of transferListeners.
- See Also:
-
equals
-
hashCode
-
toString
-