@NotThreadSafe public static interface UploadRequest.Builder extends CopyableBuilder<UploadRequest.Builder,UploadRequest>
UploadRequest, created with UploadRequest.builder()| Modifier and Type | Method and Description |
|---|---|
UploadRequest.Builder |
addTransferListener(TransferListener transferListener)
Add a
TransferListener that will be notified as part of this request. |
UploadRequest |
build() |
default UploadRequest.Builder |
putObjectRequest(Consumer<PutObjectRequest.Builder> putObjectRequestBuilder)
Configure the
PutObjectRequest that should be used for the upload |
UploadRequest.Builder |
putObjectRequest(PutObjectRequest putObjectRequest)
Configure the
PutObjectRequest that should be used for the upload |
UploadRequest.Builder |
requestBody(AsyncRequestBody requestBody)
The
AsyncRequestBody containing the data to send to the service. |
UploadRequest.Builder |
transferListeners(Collection<TransferListener> transferListeners)
The
TransferListeners that will be notified as part of this request. |
copyapplyMutationUploadRequest.Builder requestBody(AsyncRequestBody requestBody)
AsyncRequestBody containing the data to send to the service. Request bodies may be declared using one of
the static factory methods in the AsyncRequestBody class.requestBody - the request bodyAsyncRequestBodyUploadRequest.Builder putObjectRequest(PutObjectRequest putObjectRequest)
PutObjectRequest that should be used for the uploadputObjectRequest - the putObjectRequestputObjectRequest(Consumer)default UploadRequest.Builder putObjectRequest(Consumer<PutObjectRequest.Builder> putObjectRequestBuilder)
PutObjectRequest that should be used for the upload
This is a convenience method that creates an instance of the PutObjectRequest builder avoiding the
need to create one manually via PutObjectRequest.builder().
putObjectRequestBuilder - the putObjectRequest consumer builderputObjectRequest(PutObjectRequest)UploadRequest.Builder 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 transferListenersTransferListenerUploadRequest.Builder addTransferListener(TransferListener transferListener)
TransferListener that will be notified as part of this request.transferListener - the transferListener to addTransferListenerUploadRequest build()
build in interface Buildablebuild in interface SdkBuilder<UploadRequest.Builder,UploadRequest>Copyright © 2023. All rights reserved.