@NotThreadSafe public static interface UploadFileRequest.Builder extends CopyableBuilder<UploadFileRequest.Builder,UploadFileRequest>
UploadFileRequest, created with UploadFileRequest.builder()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 overrideConfiguration(TransferRequestOverrideConfiguration configuration)
configuration - The override configuration.default UploadFileRequest.Builder overrideConfiguration(Consumer<TransferRequestOverrideConfiguration.Builder> configurationBuilder)
overrideConfiguration(TransferRequestOverrideConfiguration), but takes a lambda to configure a new
TransferRequestOverrideConfiguration.Builder. This removes the need to call TransferRequestOverrideConfiguration.builder() and TransferRequestOverrideConfiguration.Builder.build().configurationBuilder - the upload configurationoverrideConfiguration(TransferRequestOverrideConfiguration)Copyright © 2022. All rights reserved.