Class CfnServerlessCache.EndpointProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnServerlessCache.EndpointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCache.EndpointProperty>
- Enclosing interface:
CfnServerlessCache.EndpointProperty
@Stability(Stable)
public static final class CfnServerlessCache.EndpointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCache.EndpointProperty>
A builder for
CfnServerlessCache.EndpointProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnServerlessCache.EndpointProperty.getAddress()build()Builds the configured instance.Sets the value ofCfnServerlessCache.EndpointProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofCfnServerlessCache.EndpointProperty.getAddress()- Parameters:
address- The DNS hostname of the cache node.- Returns:
this
-
port
Sets the value ofCfnServerlessCache.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<CfnServerlessCache.EndpointProperty>- Returns:
- a new instance of
CfnServerlessCache.EndpointProperty - Throws:
NullPointerException- if any required attribute was not provided
-