@NotThreadSafe public static interface DownloadFileRequest.Builder extends CopyableBuilder<DownloadFileRequest.Builder,DownloadFileRequest>
DownloadFileRequest, created with DownloadFileRequest.builder()copyapplyMutation, buildDownloadFileRequest.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 pathdefault DownloadFileRequest.Builder destination(File destination)
destination - the destination pathDownloadFileRequest.Builder getObjectRequest(GetObjectRequest getObjectRequest)
GetObjectRequest request that should be used for the downloadgetObjectRequest - the getObject requestgetObjectRequest(Consumer)default DownloadFileRequest.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)DownloadFileRequest.Builder overrideConfiguration(TransferRequestOverrideConfiguration configuration)
configuration - The override configuration.default DownloadFileRequest.Builder overrideConfiguration(Consumer<TransferRequestOverrideConfiguration.Builder> configurationBuilder)
overrideConfiguration(TransferRequestOverrideConfiguration), but takes a lambda to configure a new
TransferRequestOverrideConfiguration.Builder. This removes the need to call
TransferRequestOverrideConfiguration.builder() and
TransferRequestOverrideConfiguration.Builder.build().configurationBuilder - the upload configurationoverrideConfiguration(TransferRequestOverrideConfiguration)Copyright © 2022. All rights reserved.