public static interface DownloadRequest.TypedBuilder<T> extends CopyableBuilder<DownloadRequest.TypedBuilder<T>,DownloadRequest<T>>
DownloadRequest.UntypedBuilder. This builder's type is inferred as part of specifying DownloadRequest.UntypedBuilder.responseTransformer(AsyncResponseTransformer), after which this builder can be used to construct a DownloadRequest with the same generic type.| Modifier and Type | Method and Description |
|---|---|
DownloadRequest.TypedBuilder<T> |
addTransferListener(TransferListener transferListener)
Add a
TransferListener that will be notified as part of this request. |
default DownloadRequest.TypedBuilder<T> |
getObjectRequest(Consumer<GetObjectRequest.Builder> getObjectRequestBuilder)
The
GetObjectRequest request that should be used for the download |
DownloadRequest.TypedBuilder<T> |
getObjectRequest(GetObjectRequest getObjectRequest)
The
GetObjectRequest request that should be used for the download |
DownloadRequest.TypedBuilder<T> |
responseTransformer(AsyncResponseTransformer<GetObjectResponse,T> responseTransformer)
Specifies the
AsyncResponseTransformer that should be used for the download. |
DownloadRequest.TypedBuilder<T> |
transferListeners(Collection<TransferListener> transferListeners)
The
TransferListeners that will be notified as part of this request. |
copyapplyMutation, buildDownloadRequest.TypedBuilder<T> getObjectRequest(GetObjectRequest getObjectRequest)
GetObjectRequest request that should be used for the downloadgetObjectRequest - the getObject requestgetObjectRequest(Consumer)default DownloadRequest.TypedBuilder<T> 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.TypedBuilder<T> transferListeners(Collection<TransferListener> transferListeners)
TransferListeners 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.transferListeners - the collection of transferListenersTransferListenerDownloadRequest.TypedBuilder<T> addTransferListener(TransferListener transferListener)
TransferListener that will be notified as part of this request.transferListener - the transferListener to addTransferListenerDownloadRequest.TypedBuilder<T> responseTransformer(AsyncResponseTransformer<GetObjectResponse,T> responseTransformer)
AsyncResponseTransformer that should be used for the download. The generic type used is
constrained by the DownloadRequest.UntypedBuilder.responseTransformer(AsyncResponseTransformer) that was previously used to
create this DownloadRequest.TypedBuilder.responseTransformer - the AsyncResponseTransformerAsyncResponseTransformerCopyright © 2023. All rights reserved.