Class CfnSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.memorydb.CfnSnapshotProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotProps>
- Enclosing interface:
CfnSnapshotProps
@Stability(Stable)
public static final class CfnSnapshotProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotProps>
A builder for
CfnSnapshotProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterName(String clusterName) Sets the value ofCfnSnapshotProps.getClusterName()Sets the value ofCfnSnapshotProps.getKmsKeyId()snapshotName(String snapshotName) Sets the value ofCfnSnapshotProps.getSnapshotName()Sets the value ofCfnSnapshotProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterName
Sets the value ofCfnSnapshotProps.getClusterName()- Parameters:
clusterName- The name of the cluster from which the snapshot was taken. This parameter is required.- Returns:
this
-
snapshotName
Sets the value ofCfnSnapshotProps.getSnapshotName()- Parameters:
snapshotName- The name of the snapshot. This parameter is required.- Returns:
this
-
kmsKeyId
Sets the value ofCfnSnapshotProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the KMS key used to encrypt the snapshot.- Returns:
this
-
tags
Sets the value ofCfnSnapshotProps.getTags()- Parameters:
tags- A list of tags to be added to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotProps>- Returns:
- a new instance of
CfnSnapshotProps - Throws:
NullPointerException- if any required attribute was not provided
-