Interface CreateClusterSnapshotResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateClusterSnapshotResponse.Builder,CreateClusterSnapshotResponse>,DocDbElasticResponse.Builder,SdkBuilder<CreateClusterSnapshotResponse.Builder,CreateClusterSnapshotResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateClusterSnapshotResponse
public static interface CreateClusterSnapshotResponse.Builder extends DocDbElasticResponse.Builder, SdkPojo, CopyableBuilder<CreateClusterSnapshotResponse.Builder,CreateClusterSnapshotResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateClusterSnapshotResponse.Buildersnapshot(Consumer<ClusterSnapshot.Builder> snapshot)Returns information about the new Elastic DocumentDB snapshot.CreateClusterSnapshotResponse.Buildersnapshot(ClusterSnapshot snapshot)Returns information about the new Elastic DocumentDB snapshot.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.docdbelastic.model.DocDbElasticResponse.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
CreateClusterSnapshotResponse.Builder snapshot(ClusterSnapshot snapshot)
Returns information about the new Elastic DocumentDB snapshot.
- Parameters:
snapshot- Returns information about the new Elastic DocumentDB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshot
default CreateClusterSnapshotResponse.Builder snapshot(Consumer<ClusterSnapshot.Builder> snapshot)
Returns information about the new Elastic DocumentDB snapshot.
This is a convenience method that creates an instance of theClusterSnapshot.Builderavoiding the need to create one manually viaClusterSnapshot.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnapshot(ClusterSnapshot).- Parameters:
snapshot- a consumer that will call methods onClusterSnapshot.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
snapshot(ClusterSnapshot)
-
-