Class ServerlessClusterAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.rds.ServerlessClusterAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServerlessClusterAttributes>
- Enclosing interface:
- ServerlessClusterAttributes
@Stability(Stable)
public static final class ServerlessClusterAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ServerlessClusterAttributes>
A builder for
ServerlessClusterAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clusterEndpointAddress
(String clusterEndpointAddress) Sets the value ofServerlessClusterAttributes.getClusterEndpointAddress()
clusterIdentifier
(String clusterIdentifier) Sets the value ofServerlessClusterAttributes.getClusterIdentifier()
Sets the value ofServerlessClusterAttributes.getPort()
readerEndpointAddress
(String readerEndpointAddress) Sets the value ofServerlessClusterAttributes.getReaderEndpointAddress()
Sets the value ofServerlessClusterAttributes.getSecret()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofServerlessClusterAttributes.getSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterIdentifier
@Stability(Stable) public ServerlessClusterAttributes.Builder clusterIdentifier(String clusterIdentifier) Sets the value ofServerlessClusterAttributes.getClusterIdentifier()
- Parameters:
clusterIdentifier
- Identifier for the cluster. This parameter is required.- Returns:
this
-
clusterEndpointAddress
@Stability(Stable) public ServerlessClusterAttributes.Builder clusterEndpointAddress(String clusterEndpointAddress) Sets the value ofServerlessClusterAttributes.getClusterEndpointAddress()
- Parameters:
clusterEndpointAddress
- Cluster endpoint address.- Returns:
this
-
port
Sets the value ofServerlessClusterAttributes.getPort()
- Parameters:
port
- The database port.- Returns:
this
-
readerEndpointAddress
@Stability(Stable) public ServerlessClusterAttributes.Builder readerEndpointAddress(String readerEndpointAddress) Sets the value ofServerlessClusterAttributes.getReaderEndpointAddress()
- Parameters:
readerEndpointAddress
- Reader endpoint address.- Returns:
this
-
secret
Sets the value ofServerlessClusterAttributes.getSecret()
- Parameters:
secret
- The secret attached to the database cluster.- Returns:
this
-
securityGroups
@Stability(Stable) public ServerlessClusterAttributes.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofServerlessClusterAttributes.getSecurityGroups()
- Parameters:
securityGroups
- The security groups of the database cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServerlessClusterAttributes>
- Returns:
- a new instance of
ServerlessClusterAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-