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