public final class DownloadRequest<ReturnT> extends Object implements TransferObjectRequest, ToCopyableBuilder<DownloadRequest.TypedBuilder<ReturnT>,DownloadRequest<ReturnT>>
AsyncResponseTransformer. For
downloading to a file, you may use DownloadFileRequest instead.| Modifier and Type | Class and Description |
|---|---|
static interface |
DownloadRequest.TypedBuilder<T>
The type-parameterized version of
DownloadRequest.UntypedBuilder. |
static interface |
DownloadRequest.UntypedBuilder
Initial calls to
builder() return an DownloadRequest.UntypedBuilder, where the builder is not yet
parameterized with the generic type associated with DownloadRequest. |
| Modifier and Type | Method and Description |
|---|---|
static DownloadRequest.UntypedBuilder |
builder()
Creates a builder that can be used to create a
DownloadRequest. |
boolean |
equals(Object o) |
GetObjectRequest |
getObjectRequest() |
int |
hashCode() |
AsyncResponseTransformer<GetObjectResponse,ReturnT> |
responseTransformer()
The
Path to file that response contents will be written to. |
DownloadRequest.TypedBuilder<ReturnT> |
toBuilder() |
String |
toString() |
List<TransferListener> |
transferListeners() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic static DownloadRequest.UntypedBuilder builder()
DownloadRequest.DownloadRequest.UntypedBuilderpublic DownloadRequest.TypedBuilder<ReturnT> toBuilder()
toBuilder in interface ToCopyableBuilder<DownloadRequest.TypedBuilder<ReturnT>,DownloadRequest<ReturnT>>public AsyncResponseTransformer<GetObjectResponse,ReturnT> responseTransformer()
Path 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.public GetObjectRequest getObjectRequest()
GetObjectRequest request that should be used for the downloadpublic List<TransferListener> transferListeners()
transferListeners in interface TransferObjectRequestDownloadRequest.TypedBuilder.transferListeners(Collection)Copyright © 2023. All rights reserved.