@NotThreadSafe public static interface DownloadRequest.Builder extends TransferRequest.Builder<DownloadRequest,DownloadRequest.Builder>, CopyableBuilder<DownloadRequest.Builder,DownloadRequest>
DownloadRequest, created with DownloadRequest.builder()| Modifier and Type | Method and Description |
|---|---|
DownloadRequest |
build() |
DownloadRequest.Builder |
destination(Path destination)
The
Path to file that response contents will be written to. |
default DownloadRequest.Builder |
getObjectRequest(Consumer<GetObjectRequest.Builder> getObjectRequestBuilder)
The
GetObjectRequest request that should be used for the download |
DownloadRequest.Builder |
getObjectRequest(GetObjectRequest getObjectRequest)
The
GetObjectRequest request that should be used for the download |
copyapplyMutationDownloadRequest.Builder destination(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.destination - the destination pathDownloadRequest.Builder getObjectRequest(GetObjectRequest getObjectRequest)
GetObjectRequest request that should be used for the downloadgetObjectRequest - the getObject requestgetObjectRequest(Consumer)default DownloadRequest.Builder getObjectRequest(Consumer<GetObjectRequest.Builder> getObjectRequestBuilder)
GetObjectRequest request that should be used for the download
This is a convenience method that creates an instance of the GetObjectRequest builder avoiding the
need to create one manually via GetObjectRequest.builder().
getObjectRequestBuilder - the getObject requestgetObjectRequest(GetObjectRequest)DownloadRequest build()
build in interface Buildablebuild in interface SdkBuilder<DownloadRequest.Builder,DownloadRequest>build in interface TransferRequest.Builder<DownloadRequest,DownloadRequest.Builder>Copyright © 2021. All rights reserved.