@NotThreadSafe public static interface UploadFileRequest.Builder extends CopyableBuilder<UploadFileRequest.Builder,UploadFileRequest>
UploadFileRequest, created with UploadFileRequest.builder()| Modifier and Type | Method and Description |
|---|---|
UploadFileRequest.Builder |
addTransferListener(TransferListener transferListener)
Add a
TransferListener that will be notified as part of this request. |
default UploadFileRequest.Builder |
putObjectRequest(Consumer<PutObjectRequest.Builder> putObjectRequestBuilder)
Configure the
PutObjectRequest that should be used for the upload |
UploadFileRequest.Builder |
putObjectRequest(PutObjectRequest putObjectRequest)
Configure the
PutObjectRequest that should be used for the upload |
default UploadFileRequest.Builder |
source(File source)
The file containing data to send to the service.
|
UploadFileRequest.Builder |
source(Path source)
The
Path to file containing data to send to the service. |
UploadFileRequest.Builder |
transferListeners(Collection<TransferListener> transferListeners)
The
TransferListeners that will be notified as part of this request. |
copyapplyMutation, buildUploadFileRequest.Builder source(Path source)
Path to file containing data to send to the service. File will be read entirely and may be read
multiple times in the event of a retry. If the file does not exist or the current user does not have
access to read it then an exception will be thrown.source - the source pathdefault UploadFileRequest.Builder source(File source)
source - the source pathUploadFileRequest.Builder putObjectRequest(PutObjectRequest putObjectRequest)
PutObjectRequest that should be used for the uploadputObjectRequest - the putObjectRequestputObjectRequest(Consumer)default UploadFileRequest.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)UploadFileRequest.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 transferListenersTransferListenerUploadFileRequest.Builder addTransferListener(TransferListener transferListener)
TransferListener that will be notified as part of this request.transferListener - the transferListener to addTransferListenerCopyright © 2023. All rights reserved.