Class CfnDBInstancePropsMixin.EndpointProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rds.CfnDBInstancePropsMixin.EndpointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBInstancePropsMixin.EndpointProperty>
- Enclosing interface:
CfnDBInstancePropsMixin.EndpointProperty
@Stability(Stable)
public static final class CfnDBInstancePropsMixin.EndpointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBInstancePropsMixin.EndpointProperty>
A builder for
CfnDBInstancePropsMixin.EndpointProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDBInstancePropsMixin.EndpointProperty.getAddress()build()Builds the configured instance.hostedZoneId(String hostedZoneId) Sets the value ofCfnDBInstancePropsMixin.EndpointProperty.getHostedZoneId()Sets the value ofCfnDBInstancePropsMixin.EndpointProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofCfnDBInstancePropsMixin.EndpointProperty.getAddress()- Parameters:
address- Specifies the DNS address of the DB instance.- Returns:
this
-
hostedZoneId
@Stability(Stable) public CfnDBInstancePropsMixin.EndpointProperty.Builder hostedZoneId(String hostedZoneId) Sets the value ofCfnDBInstancePropsMixin.EndpointProperty.getHostedZoneId()- Parameters:
hostedZoneId- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.- Returns:
this
-
port
Sets the value ofCfnDBInstancePropsMixin.EndpointProperty.getPort()- Parameters:
port- Specifies the port that the database engine is listening on.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBInstancePropsMixin.EndpointProperty>- Returns:
- a new instance of
CfnDBInstancePropsMixin.EndpointProperty - Throws:
NullPointerException- if any required attribute was not provided
-