Class CfnReplicationGroupPropsMixin.EndpointProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticache.CfnReplicationGroupPropsMixin.EndpointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationGroupPropsMixin.EndpointProperty>
- Enclosing interface:
CfnReplicationGroupPropsMixin.EndpointProperty
@Stability(Stable)
public static final class CfnReplicationGroupPropsMixin.EndpointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationGroupPropsMixin.EndpointProperty>
A builder for
CfnReplicationGroupPropsMixin.EndpointProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnReplicationGroupPropsMixin.EndpointProperty.getAddress()build()Builds the configured instance.Sets the value ofCfnReplicationGroupPropsMixin.EndpointProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
@Stability(Stable) public CfnReplicationGroupPropsMixin.EndpointProperty.Builder address(String address) Sets the value ofCfnReplicationGroupPropsMixin.EndpointProperty.getAddress()- Parameters:
address- The DNS hostname of the cache node.- Returns:
this
-
port
Sets the value ofCfnReplicationGroupPropsMixin.EndpointProperty.getPort()- Parameters:
port- The port number that the cache engine is listening on.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicationGroupPropsMixin.EndpointProperty>- Returns:
- a new instance of
CfnReplicationGroupPropsMixin.EndpointProperty - Throws:
NullPointerException- if any required attribute was not provided
-