Class CfnSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.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.cacheClusterId(String cacheClusterId) Sets the value ofCfnSnapshotProps.getCacheClusterId()Sets the value ofCfnSnapshotProps.getKmsKeyId()replicationGroupId(String replicationGroupId) Sets the value ofCfnSnapshotProps.getReplicationGroupId()snapshotName(String snapshotName) Sets the value ofCfnSnapshotProps.getSnapshotName()Sets the value ofCfnSnapshotProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
snapshotName
Sets the value ofCfnSnapshotProps.getSnapshotName()- Parameters:
snapshotName- The name of a snapshot. This parameter is required. Must be unique within the customer account.- Returns:
this
-
cacheClusterId
Sets the value ofCfnSnapshotProps.getCacheClusterId()- Parameters:
cacheClusterId- The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.- Returns:
this
-
kmsKeyId
Sets the value ofCfnSnapshotProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the KMS key used to encrypt the snapshot.- Returns:
this
-
replicationGroupId
Sets the value ofCfnSnapshotProps.getReplicationGroupId()- Parameters:
replicationGroupId- The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.- 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
-