Class CfnSnapshot.ClusterConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.memorydb.CfnSnapshot.ClusterConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshot.ClusterConfigurationProperty>
- Enclosing interface:
CfnSnapshot.ClusterConfigurationProperty
@Stability(Stable)
public static final class CfnSnapshot.ClusterConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshot.ClusterConfigurationProperty>
A builder for
CfnSnapshot.ClusterConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getDescription()Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getEngine()engineVersion(String engineVersion) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getEngineVersion()maintenanceWindow(String maintenanceWindow) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getMaintenanceWindow()Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getName()Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getNodeType()Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getNumShards()parameterGroupName(String parameterGroupName) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getParameterGroupName()Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getPort()snapshotRetentionLimit(Number snapshotRetentionLimit) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getSnapshotRetentionLimit()snapshotWindow(String snapshotWindow) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getSnapshotWindow()subnetGroupName(String subnetGroupName) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getSubnetGroupName()Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getTopicArn()Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder description(String description) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getDescription()- Parameters:
description- The description of the cluster configuration.- Returns:
this
-
engine
Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getEngine()- Parameters:
engine- The name of the engine used by the cluster configuration.- Returns:
this
-
engineVersion
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder engineVersion(String engineVersion) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getEngineVersion()- Parameters:
engineVersion- The Redis OSS engine version used by the cluster.- Returns:
this
-
maintenanceWindow
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder maintenanceWindow(String maintenanceWindow) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getMaintenanceWindow()- Parameters:
maintenanceWindow- The specified maintenance window for the cluster.- Returns:
this
-
name
Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getName()- Parameters:
name- The name of the cluster.- Returns:
this
-
nodeType
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder nodeType(String nodeType) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getNodeType()- Parameters:
nodeType- The node type used for the cluster.- Returns:
this
-
numShards
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder numShards(Number numShards) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getNumShards()- Parameters:
numShards- The number of shards in the cluster.- Returns:
this
-
parameterGroupName
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder parameterGroupName(String parameterGroupName) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getParameterGroupName()- Parameters:
parameterGroupName- The name of parameter group used by the cluster.- Returns:
this
-
port
Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getPort()- Parameters:
port- The port used by the cluster.- Returns:
this
-
snapshotRetentionLimit
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder snapshotRetentionLimit(Number snapshotRetentionLimit) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getSnapshotRetentionLimit()- Parameters:
snapshotRetentionLimit- The snapshot retention limit set by the cluster.- Returns:
this
-
snapshotWindow
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder snapshotWindow(String snapshotWindow) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getSnapshotWindow()- Parameters:
snapshotWindow- The snapshot window set by the cluster.- Returns:
this
-
subnetGroupName
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder subnetGroupName(String subnetGroupName) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getSubnetGroupName()- Parameters:
subnetGroupName- The name of the subnet group used by the cluster.- Returns:
this
-
topicArn
@Stability(Stable) public CfnSnapshot.ClusterConfigurationProperty.Builder topicArn(String topicArn) Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getTopicArn()- Parameters:
topicArn- The Amazon Resource Name (ARN) of the SNS notification topic for the cluster.- Returns:
this
-
vpcId
Sets the value ofCfnSnapshot.ClusterConfigurationProperty.getVpcId()- Parameters:
vpcId- The ID of the VPC the cluster belongs to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshot.ClusterConfigurationProperty>- Returns:
- a new instance of
CfnSnapshot.ClusterConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-