Interface CopyRequest.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CopyRequest.Builder,CopyRequest>,SdkBuilder<CopyRequest.Builder,CopyRequest>
- Enclosing class:
- CopyRequest
@NotThreadSafe public static interface CopyRequest.Builder extends CopyableBuilder<CopyRequest.Builder,CopyRequest>
A builder for aCopyRequest, created withCopyRequest.builder()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CopyRequest.BuilderaddTransferListener(TransferListener transferListener)Adds aTransferListenerthat will be notified as part of this request.CopyRequestbuild()default CopyRequest.BuildercopyObjectRequest(Consumer<CopyObjectRequest.Builder> copyRequestBuilder)Configures theCopyRequestthat should be used for the copyCopyRequest.BuildercopyObjectRequest(CopyObjectRequest copyRequest)Configures theCopyRequestthat should be used for the copyCopyRequest.BuildertransferListeners(Collection<TransferListener> transferListeners)TheTransferListeners that will be notified as part of this request.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
copyObjectRequest
CopyRequest.Builder copyObjectRequest(CopyObjectRequest copyRequest)
Configures theCopyRequestthat should be used for the copy- Parameters:
copyRequest- the copyRequest- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
copyObjectRequest(Consumer)
-
copyObjectRequest
default CopyRequest.Builder copyObjectRequest(Consumer<CopyObjectRequest.Builder> copyRequestBuilder)
Configures theCopyRequestthat should be used for the copyThis is a convenience method that creates an instance of the
CopyRequestbuilder avoiding the need to create one manually viaCopyRequest.builder().- Parameters:
copyRequestBuilder- the copyRequest consumer builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
copyObjectRequest(CopyObjectRequest)
-
transferListeners
CopyRequest.Builder transferListeners(Collection<TransferListener> transferListeners)
TheTransferListeners 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.- Parameters:
transferListeners- the collection of transferListeners- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TransferListener
-
addTransferListener
CopyRequest.Builder addTransferListener(TransferListener transferListener)
Adds aTransferListenerthat will be notified as part of this request.- Parameters:
transferListener- the transferListener to add- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TransferListener
-
build
CopyRequest build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<CopyRequest.Builder,CopyRequest>- Returns:
- The built request.
-
-