Class DatabaseClusterAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.docdb.DatabaseClusterAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseClusterAttributes>
- Enclosing interface:
DatabaseClusterAttributes
@Stability(Stable)
public static final class DatabaseClusterAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseClusterAttributes>
A builder for
DatabaseClusterAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterEndpointAddress(String clusterEndpointAddress) Sets the value ofDatabaseClusterAttributes.getClusterEndpointAddress()clusterIdentifier(String clusterIdentifier) Sets the value ofDatabaseClusterAttributes.getClusterIdentifier()instanceEndpointAddresses(List<String> instanceEndpointAddresses) Sets the value ofDatabaseClusterAttributes.getInstanceEndpointAddresses()instanceIdentifiers(List<String> instanceIdentifiers) Sets the value ofDatabaseClusterAttributes.getInstanceIdentifiers()Sets the value ofDatabaseClusterAttributes.getPort()readerEndpointAddress(String readerEndpointAddress) Sets the value ofDatabaseClusterAttributes.getReaderEndpointAddress()securityGroup(ISecurityGroup securityGroup) Sets the value ofDatabaseClusterAttributes.getSecurityGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterIdentifier
@Stability(Stable) public DatabaseClusterAttributes.Builder clusterIdentifier(String clusterIdentifier) Sets the value ofDatabaseClusterAttributes.getClusterIdentifier()- Parameters:
clusterIdentifier- Identifier for the cluster. This parameter is required.- Returns:
this
-
clusterEndpointAddress
@Stability(Stable) public DatabaseClusterAttributes.Builder clusterEndpointAddress(String clusterEndpointAddress) Sets the value ofDatabaseClusterAttributes.getClusterEndpointAddress()- Parameters:
clusterEndpointAddress- Cluster endpoint address.- Returns:
this
-
instanceEndpointAddresses
@Stability(Stable) public DatabaseClusterAttributes.Builder instanceEndpointAddresses(List<String> instanceEndpointAddresses) Sets the value ofDatabaseClusterAttributes.getInstanceEndpointAddresses()- Parameters:
instanceEndpointAddresses- Endpoint addresses of individual instances.- Returns:
this
-
instanceIdentifiers
@Stability(Stable) public DatabaseClusterAttributes.Builder instanceIdentifiers(List<String> instanceIdentifiers) Sets the value ofDatabaseClusterAttributes.getInstanceIdentifiers()- Parameters:
instanceIdentifiers- Identifier for the instances.- Returns:
this
-
port
Sets the value ofDatabaseClusterAttributes.getPort()- Parameters:
port- The database port.- Returns:
this
-
readerEndpointAddress
@Stability(Stable) public DatabaseClusterAttributes.Builder readerEndpointAddress(String readerEndpointAddress) Sets the value ofDatabaseClusterAttributes.getReaderEndpointAddress()- Parameters:
readerEndpointAddress- Reader endpoint address.- Returns:
this
-
securityGroup
@Stability(Stable) public DatabaseClusterAttributes.Builder securityGroup(ISecurityGroup securityGroup) Sets the value ofDatabaseClusterAttributes.getSecurityGroup()- Parameters:
securityGroup- The security group of the database cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseClusterAttributes>- Returns:
- a new instance of
DatabaseClusterAttributes - Throws:
NullPointerException- if any required attribute was not provided
-