Class CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty>
- Enclosing interface:
CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty
@Stability(Stable)
public static final class CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.replicationGroupId
(String replicationGroupId) replicationGroupRegion
(String replicationGroupRegion) Sets the value ofCfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
replicationGroupId
@Stability(Stable) public CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.Builder replicationGroupId(String replicationGroupId) Sets the value ofCfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.getReplicationGroupId()
- Parameters:
replicationGroupId
- The replication group id of the Global datastore member.- Returns:
this
-
replicationGroupRegion
@Stability(Stable) public CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.Builder replicationGroupRegion(String replicationGroupRegion) Sets the value ofCfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.getReplicationGroupRegion()
- Parameters:
replicationGroupRegion
- The Amazon region of the Global datastore member.- Returns:
this
-
role
@Stability(Stable) public CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.Builder role(String role) Sets the value ofCfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty.getRole()
- Parameters:
role
- Indicates the role of the replication group,PRIMARY
orSECONDARY
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty>
- Returns:
- a new instance of
CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-