Class CfnReplicationGroupPropsMixin.ReadEndPointProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticache.CfnReplicationGroupPropsMixin.ReadEndPointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationGroupPropsMixin.ReadEndPointProperty>
- Enclosing interface:
CfnReplicationGroupPropsMixin.ReadEndPointProperty
@Stability(Stable)
public static final class CfnReplicationGroupPropsMixin.ReadEndPointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationGroupPropsMixin.ReadEndPointProperty>
A builder for
CfnReplicationGroupPropsMixin.ReadEndPointProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnReplicationGroupPropsMixin.ReadEndPointProperty.getAddresses()addressesList(List<String> addressesList) Sets the value ofCfnReplicationGroupPropsMixin.ReadEndPointProperty.getAddressesList()build()Builds the configured instance.Sets the value ofCfnReplicationGroupPropsMixin.ReadEndPointProperty.getPorts()Sets the value ofCfnReplicationGroupPropsMixin.ReadEndPointProperty.getPortsList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addresses
@Stability(Stable) public CfnReplicationGroupPropsMixin.ReadEndPointProperty.Builder addresses(String addresses) Sets the value ofCfnReplicationGroupPropsMixin.ReadEndPointProperty.getAddresses()- Parameters:
addresses- A string containing a comma-separated list of endpoints for the primary and read-only replicas, formatted as [address1, address2, ...]. The order of the addresses maps to the order of the ports from the ReadEndPoint.Ports attribute.- Returns:
this
-
addressesList
@Stability(Stable) public CfnReplicationGroupPropsMixin.ReadEndPointProperty.Builder addressesList(List<String> addressesList) Sets the value ofCfnReplicationGroupPropsMixin.ReadEndPointProperty.getAddressesList()- Parameters:
addressesList- A list of endpoints for the read-only replicas. The order of the addresses maps to the order of the ports from the ReadEndPoint.Ports attribute.- Returns:
this
-
ports
@Stability(Stable) public CfnReplicationGroupPropsMixin.ReadEndPointProperty.Builder ports(String ports) Sets the value ofCfnReplicationGroupPropsMixin.ReadEndPointProperty.getPorts()- Parameters:
ports- A string containing a comma-separated list of ports for the read-only replicas, formatted as [port1, port2, ...]. The order of the ports maps to the order of the addresses from the ReadEndPoint.Addresses attribute.- Returns:
this
-
portsList
@Stability(Stable) public CfnReplicationGroupPropsMixin.ReadEndPointProperty.Builder portsList(List<String> portsList) Sets the value ofCfnReplicationGroupPropsMixin.ReadEndPointProperty.getPortsList()- Parameters:
portsList- A list of ports for the read-only replicas. The order of the ports maps to the order of the addresses from the ReadEndPoint.Addresses attribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicationGroupPropsMixin.ReadEndPointProperty>- Returns:
- a new instance of
CfnReplicationGroupPropsMixin.ReadEndPointProperty - Throws:
NullPointerException- if any required attribute was not provided
-