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