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 a
CopyRequest
, created with CopyRequest.builder()
-
Method Summary
Modifier and TypeMethodDescriptionaddTransferListener
(TransferListener transferListener) Adds aTransferListener
that will be notified as part of this request.build()
An immutable object that is created from the properties that have been set on the builder.default CopyRequest.Builder
copyObjectRequest
(Consumer<CopyObjectRequest.Builder> copyRequestBuilder) Configures theCopyRequest
that should be used for the copycopyObjectRequest
(CopyObjectRequest copyRequest) Configures theCopyRequest
that should be used for the copytransferListeners
(Collection<TransferListener> transferListeners) TheTransferListener
s 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 Details
-
copyObjectRequest
Configures theCopyRequest
that 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
default CopyRequest.Builder copyObjectRequest(Consumer<CopyObjectRequest.Builder> copyRequestBuilder) Configures theCopyRequest
that should be used for the copyThis is a convenience method that creates an instance of the
CopyRequest
builder 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:
-
transferListeners
TheTransferListener
s 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:
-
addTransferListener
Adds aTransferListener
that 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:
-
build
CopyRequest build()Description copied from interface:SdkBuilder
An immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<CopyRequest.Builder,
CopyRequest> - Returns:
- The built request.
-