Class DatabaseInstanceAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.rds.DatabaseInstanceAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseInstanceAttributes>
- Enclosing interface:
- DatabaseInstanceAttributes
@Stability(Stable)
public static final class DatabaseInstanceAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseInstanceAttributes>
A builder for
DatabaseInstanceAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.engine
(IInstanceEngine engine) Sets the value ofDatabaseInstanceAttributes.getEngine()
instanceEndpointAddress
(String instanceEndpointAddress) Sets the value ofDatabaseInstanceAttributes.getInstanceEndpointAddress()
instanceIdentifier
(String instanceIdentifier) Sets the value ofDatabaseInstanceAttributes.getInstanceIdentifier()
Sets the value ofDatabaseInstanceAttributes.getPort()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofDatabaseInstanceAttributes.getSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceEndpointAddress
@Stability(Stable) public DatabaseInstanceAttributes.Builder instanceEndpointAddress(String instanceEndpointAddress) Sets the value ofDatabaseInstanceAttributes.getInstanceEndpointAddress()
- Parameters:
instanceEndpointAddress
- The endpoint address. This parameter is required.- Returns:
this
-
instanceIdentifier
@Stability(Stable) public DatabaseInstanceAttributes.Builder instanceIdentifier(String instanceIdentifier) Sets the value ofDatabaseInstanceAttributes.getInstanceIdentifier()
- Parameters:
instanceIdentifier
- The instance identifier. This parameter is required.- Returns:
this
-
port
Sets the value ofDatabaseInstanceAttributes.getPort()
- Parameters:
port
- The database port. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Stable) public DatabaseInstanceAttributes.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofDatabaseInstanceAttributes.getSecurityGroups()
- Parameters:
securityGroups
- The security groups of the instance. This parameter is required.- Returns:
this
-
engine
Sets the value ofDatabaseInstanceAttributes.getEngine()
- Parameters:
engine
- The engine of the existing database Instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DatabaseInstanceAttributes>
- Returns:
- a new instance of
DatabaseInstanceAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-