@NotThreadSafe public static interface UploadRequest.Builder extends CopyableBuilder<UploadRequest.Builder,UploadRequest>
UploadRequest, created with UploadRequest.builder()| Modifier and Type | Method and Description |
|---|---|
UploadRequest |
build() |
default UploadRequest.Builder |
overrideConfiguration(Consumer<TransferRequestOverrideConfiguration.Builder> configurationBuilder)
Similar to
overrideConfiguration(TransferRequestOverrideConfiguration), but takes a lambda to configure a new
TransferRequestOverrideConfiguration.Builder. |
UploadRequest.Builder |
overrideConfiguration(TransferRequestOverrideConfiguration configuration)
Add an optional request override configuration.
|
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. |
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 overrideConfiguration(TransferRequestOverrideConfiguration configuration)
configuration - The override configuration.default UploadRequest.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)UploadRequest build()
build in interface Buildablebuild in interface SdkBuilder<UploadRequest.Builder,UploadRequest>Copyright © 2022. All rights reserved.