Class DownloadFileRequest
java.lang.Object
software.amazon.awssdk.transfer.s3.model.DownloadFileRequest
- All Implemented Interfaces:
TransferObjectRequest,TransferRequest,ToCopyableBuilder<DownloadFileRequest.Builder,DownloadFileRequest>
@SdkPublicApi
public final class DownloadFileRequest
extends Object
implements TransferObjectRequest, ToCopyableBuilder<DownloadFileRequest.Builder,DownloadFileRequest>
Download an object identified by the bucket and key from S3 to a local file. For non-file-based downloads, you may use
DownloadRequest instead.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA builder for aDownloadFileRequest, created withbuilder() -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloadFileRequest.Builderbuilder()Creates a builder that can be used to create aDownloadFileRequest.ThePathto file that response contents will be written to.booleaninthashCode()static Class<? extends DownloadFileRequest.Builder>toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
builder
Creates a builder that can be used to create aDownloadFileRequest. -
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<DownloadFileRequest.Builder,DownloadFileRequest>
-
destination
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:
- List of
TransferListeners that will be notified as part of this request.
-
equals
-
hashCode
public int hashCode() -
toString
-
serializableBuilderClass
-