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>>
@SdkPublicApi
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.-
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.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 aDownloadRequest.- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<DownloadRequest.TypedBuilder<ReturnT>,DownloadRequest<ReturnT>>
-
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
public int hashCode() -
toString
-