public final class DownloadRequest extends Object implements TransferRequest, ToCopyableBuilder<DownloadRequest.Builder,DownloadRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DownloadRequest.Builder
A builder for a
DownloadRequest, created with builder() |
| Modifier and Type | Method and Description |
|---|---|
static DownloadRequest.Builder |
builder()
Create a builder that can be used to create a
DownloadRequest. |
Path |
destination()
The
Path to file that response contents will be written to. |
boolean |
equals(Object o) |
GetObjectRequest |
getObjectRequest() |
int |
hashCode() |
DownloadRequest.Builder |
toBuilder() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcopypublic static DownloadRequest.Builder builder()
DownloadRequest.public DownloadRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DownloadRequest.Builder,DownloadRequest>public Path destination()
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 downloadCopyright © 2021. All rights reserved.