Class CfnGlobalReplicationGroup.ReshardingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup.ReshardingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalReplicationGroup.ReshardingConfigurationProperty>
- Enclosing interface:
CfnGlobalReplicationGroup.ReshardingConfigurationProperty
@Stability(Stable)
public static final class CfnGlobalReplicationGroup.ReshardingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalReplicationGroup.ReshardingConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.nodeGroupId
(String nodeGroupId) preferredAvailabilityZones
(List<String> preferredAvailabilityZones)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeGroupId
@Stability(Stable) public CfnGlobalReplicationGroup.ReshardingConfigurationProperty.Builder nodeGroupId(String nodeGroupId) - Parameters:
nodeGroupId
- Either the ElastiCache supplied 4-digit id or a user supplied id for the node group these configuration values apply to.- Returns:
this
-
preferredAvailabilityZones
@Stability(Stable) public CfnGlobalReplicationGroup.ReshardingConfigurationProperty.Builder preferredAvailabilityZones(List<String> preferredAvailabilityZones) Sets the value ofCfnGlobalReplicationGroup.ReshardingConfigurationProperty.getPreferredAvailabilityZones()
- Parameters:
preferredAvailabilityZones
- A list of preferred availability zones for the nodes in this cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalReplicationGroup.ReshardingConfigurationProperty>
- Returns:
- a new instance of
CfnGlobalReplicationGroup.ReshardingConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-