Interface PresignedDownloadFileRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PresignedDownloadFileRequest.Builder,,PresignedDownloadFileRequest> SdkBuilder<PresignedDownloadFileRequest.Builder,PresignedDownloadFileRequest>
- Enclosing class:
PresignedDownloadFileRequest
@SdkPublicApi
@NotThreadSafe
public static interface PresignedDownloadFileRequest.Builder
extends CopyableBuilder<PresignedDownloadFileRequest.Builder,PresignedDownloadFileRequest>
A builder for a
PresignedDownloadFileRequest, created with PresignedDownloadFileRequest.builder()-
Method Summary
Modifier and TypeMethodDescriptionaddTransferListener(TransferListener transferListener) Add aTransferListenerthat will be notified as part of this request.destination(File destination) The file that response contents will be written to.destination(Path destination) ThePathto file that response contents will be written to.presignedUrlDownloadRequest(Consumer<PresignedUrlDownloadRequest.Builder> presignedUrlDownloadRequestBuilder) ThePresignedUrlDownloadRequestrequest that should be used for the downloadpresignedUrlDownloadRequest(PresignedUrlDownloadRequest presignedUrlDownloadRequest) ThePresignedUrlDownloadRequestrequest that should be used for the downloadtransferListeners(Collection<TransferListener> transferListeners) TheTransferListeners that will be notified as part of this request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Method Details
-
destination
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.- Parameters:
destination- the destination path- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
The 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.- Parameters:
destination- the destination path- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
presignedUrlDownloadRequest
PresignedDownloadFileRequest.Builder presignedUrlDownloadRequest(PresignedUrlDownloadRequest presignedUrlDownloadRequest) ThePresignedUrlDownloadRequestrequest that should be used for the download- Parameters:
presignedUrlDownloadRequest- the presigned URL download request- Returns:
- a reference to this object so that method calls can be chained together.
- See Also:
-
presignedUrlDownloadRequest
default PresignedDownloadFileRequest.Builder presignedUrlDownloadRequest(Consumer<PresignedUrlDownloadRequest.Builder> presignedUrlDownloadRequestBuilder) ThePresignedUrlDownloadRequestrequest that should be used for the downloadThis is a convenience method that creates an instance of the
PresignedUrlDownloadRequestbuilder avoiding the need to create one manually viaPresignedUrlDownloadRequest.builder().- Parameters:
presignedUrlDownloadRequestBuilder- the presigned URL download request- Returns:
- a reference to this object so that method calls can be chained together.
- See Also:
-
transferListeners
PresignedDownloadFileRequest.Builder transferListeners(Collection<TransferListener> transferListeners) TheTransferListeners that will be notified as part of this request. This method overrides and replaces any transferListeners that have already been set. Add an optional request override configuration.- Parameters:
transferListeners- the collection of transferListeners- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
addTransferListener
Add aTransferListenerthat will be notified as part of this request.- Parameters:
transferListener- the transferListener to add- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-