Interface CopySnapshotResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CopySnapshotResponse.Builder,CopySnapshotResponse>,MemoryDbResponse.Builder,SdkBuilder<CopySnapshotResponse.Builder,CopySnapshotResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CopySnapshotResponse
public static interface CopySnapshotResponse.Builder extends MemoryDbResponse.Builder, SdkPojo, CopyableBuilder<CopySnapshotResponse.Builder,CopySnapshotResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CopySnapshotResponse.Buildersnapshot(Consumer<Snapshot.Builder> snapshot)Represents a copy of an entire cluster as of the time when the snapshot was taken.CopySnapshotResponse.Buildersnapshot(Snapshot snapshot)Represents a copy of an entire cluster as of the time when the snapshot was taken.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.memorydb.model.MemoryDbResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
snapshot
CopySnapshotResponse.Builder snapshot(Snapshot snapshot)
Represents a copy of an entire cluster as of the time when the snapshot was taken.
- Parameters:
snapshot- Represents a copy of an entire cluster as of the time when the snapshot was taken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshot
default CopySnapshotResponse.Builder snapshot(Consumer<Snapshot.Builder> snapshot)
Represents a copy of an entire cluster as of the time when the snapshot was taken.
This is a convenience method that creates an instance of theSnapshot.Builderavoiding the need to create one manually viaSnapshot.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnapshot(Snapshot).- Parameters:
snapshot- a consumer that will call methods onSnapshot.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
snapshot(Snapshot)
-
-