Class CfnSnapshotMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticache.CfnSnapshotMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotMixinProps>
- Enclosing interface:
CfnSnapshotMixinProps
@Stability(Stable)
public static final class CfnSnapshotMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotMixinProps>
A builder for
CfnSnapshotMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheClusterId(String cacheClusterId) Sets the value ofCfnSnapshotMixinProps.getCacheClusterId()Sets the value ofCfnSnapshotMixinProps.getKmsKeyId()replicationGroupId(String replicationGroupId) Sets the value ofCfnSnapshotMixinProps.getReplicationGroupId()snapshotName(String snapshotName) Sets the value ofCfnSnapshotMixinProps.getSnapshotName()Sets the value ofCfnSnapshotMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheClusterId
Sets the value ofCfnSnapshotMixinProps.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 ofCfnSnapshotMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the KMS key used to encrypt the snapshot.- Returns:
this
-
replicationGroupId
@Stability(Stable) public CfnSnapshotMixinProps.Builder replicationGroupId(String replicationGroupId) Sets the value ofCfnSnapshotMixinProps.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
-
snapshotName
Sets the value ofCfnSnapshotMixinProps.getSnapshotName()- Parameters:
snapshotName- The name of a snapshot. Must be unique within the customer account.- Returns:
this
-
tags
Sets the value ofCfnSnapshotMixinProps.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<CfnSnapshotMixinProps>- Returns:
- a new instance of
CfnSnapshotMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-