@NotThreadSafe public static interface UploadRequest.Builder extends TransferRequest.Builder<UploadRequest,UploadRequest.Builder>, CopyableBuilder<UploadRequest.Builder,UploadRequest>
UploadRequest, created with UploadRequest.builder()| Modifier and Type | Method and Description |
|---|---|
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 |
source(Path source)
The
Path to file containing data to send to the service. |
copyapplyMutationUploadRequest.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 pathUploadRequest.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 build()
build in interface Buildablebuild in interface SdkBuilder<UploadRequest.Builder,UploadRequest>build in interface TransferRequest.Builder<UploadRequest,UploadRequest.Builder>Copyright © 2021. All rights reserved.