Interface PresignedDownloadRequest.TypedBuilder<T>
- All Superinterfaces:
Buildable,CopyableBuilder<PresignedDownloadRequest.TypedBuilder<T>,,PresignedDownloadRequest<T>> SdkBuilder<PresignedDownloadRequest.TypedBuilder<T>,PresignedDownloadRequest<T>>
- Enclosing class:
- PresignedDownloadRequest<ReturnT>
public static interface PresignedDownloadRequest.TypedBuilder<T>
extends CopyableBuilder<PresignedDownloadRequest.TypedBuilder<T>,PresignedDownloadRequest<T>>
The type-parameterized version of
PresignedDownloadRequest.UntypedBuilder. This builder's type is inferred as part of specifying PresignedDownloadRequest.UntypedBuilder.responseTransformer(AsyncResponseTransformer), after which this builder can be used to construct a PresignedDownloadRequest with the same generic type.-
Method Summary
Modifier and TypeMethodDescriptionaddTransferListener(TransferListener transferListener) Add aTransferListenerthat will be notified as part of this request.default PresignedDownloadRequest.TypedBuilder<T>presignedUrlDownloadRequest(Consumer<PresignedUrlDownloadRequest.Builder> presignedUrlDownloadRequestBuilder) ThePresignedUrlDownloadRequestrequest that should be used for the downloadpresignedUrlDownloadRequest(PresignedUrlDownloadRequest presignedUrlDownloadRequest) ThePresignedUrlDownloadRequestrequest that should be used for the downloadresponseTransformer(AsyncResponseTransformer<GetObjectResponse, T> responseTransformer) Specifies theAsyncResponseTransformerthat should be used for the download.transferListeners(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
-
presignedUrlDownloadRequest
PresignedDownloadRequest.TypedBuilder<T> 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 PresignedDownloadRequest.TypedBuilder<T> 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
PresignedDownloadRequest.TypedBuilder<T> 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:
-
responseTransformer
PresignedDownloadRequest.TypedBuilder<T> responseTransformer(AsyncResponseTransformer<GetObjectResponse, T> responseTransformer) Specifies theAsyncResponseTransformerthat should be used for the download. The generic type used is constrained by thePresignedDownloadRequest.UntypedBuilder.responseTransformer(AsyncResponseTransformer)that was previously used to create thisPresignedDownloadRequest.TypedBuilder.- Parameters:
responseTransformer- the AsyncResponseTransformer- Returns:
- a reference to this object so that method calls can be chained together.
- See Also:
-