Interface CreateSnapshotResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateSnapshotResponse.Builder,,CreateSnapshotResponse> MemoryDbResponse.Builder,SdkBuilder<CreateSnapshotResponse.Builder,,CreateSnapshotResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateSnapshotResponse
public static interface CreateSnapshotResponse.Builder
extends MemoryDbResponse.Builder, SdkPojo, CopyableBuilder<CreateSnapshotResponse.Builder,CreateSnapshotResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateSnapshotResponse.Buildersnapshot(Consumer<Snapshot.Builder> snapshot) The newly-created snapshot.The newly-created snapshot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.memorydb.model.MemoryDbResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
snapshot
The newly-created snapshot.
- Parameters:
snapshot- The newly-created snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshot
The newly-created snapshot.
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:
-