Class PresignedDownloadFileRequest
java.lang.Object
software.amazon.awssdk.transfer.s3.model.PresignedDownloadFileRequest
- All Implemented Interfaces:
TransferObjectRequest,TransferRequest,ToCopyableBuilder<PresignedDownloadFileRequest.Builder,PresignedDownloadFileRequest>
@SdkPublicApi
public final class PresignedDownloadFileRequest
extends Object
implements TransferObjectRequest, ToCopyableBuilder<PresignedDownloadFileRequest.Builder,PresignedDownloadFileRequest>
Download an object using a pre-signed URL to a local file. For non-file-based downloads, you may use
PresignedDownloadRequest instead.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA builder for aPresignedDownloadFileRequest, created withbuilder() -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder that can be used to create aPresignedDownloadFileRequest.ThePathto file that response contents will be written to.booleaninthashCode()static Class<? extends PresignedDownloadFileRequest.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 aPresignedDownloadFileRequest. -
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<PresignedDownloadFileRequest.Builder,PresignedDownloadFileRequest>
-
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
-
presignedUrlDownloadRequest
- Returns:
- The
PresignedUrlDownloadRequestrequest 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
-