Class CfnReplicationGroup.ReadEndPointProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnReplicationGroup.ReadEndPointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationGroup.ReadEndPointProperty>
- Enclosing interface:
CfnReplicationGroup.ReadEndPointProperty
@Stability(Stable)
public static final class CfnReplicationGroup.ReadEndPointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationGroup.ReadEndPointProperty>
A builder for
CfnReplicationGroup.ReadEndPointProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnReplicationGroup.ReadEndPointProperty.getAddresses()addressesList(List<String> addressesList) Sets the value ofCfnReplicationGroup.ReadEndPointProperty.getAddressesList()build()Builds the configured instance.Sets the value ofCfnReplicationGroup.ReadEndPointProperty.getPorts()Sets the value ofCfnReplicationGroup.ReadEndPointProperty.getPortsList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addresses
@Stability(Stable) public CfnReplicationGroup.ReadEndPointProperty.Builder addresses(String addresses) Sets the value ofCfnReplicationGroup.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 CfnReplicationGroup.ReadEndPointProperty.Builder addressesList(List<String> addressesList) Sets the value ofCfnReplicationGroup.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
Sets the value ofCfnReplicationGroup.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 CfnReplicationGroup.ReadEndPointProperty.Builder portsList(List<String> portsList) Sets the value ofCfnReplicationGroup.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<CfnReplicationGroup.ReadEndPointProperty>- Returns:
- a new instance of
CfnReplicationGroup.ReadEndPointProperty - Throws:
NullPointerException- if any required attribute was not provided
-