Class CfnDBSubnetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBSubnetGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSubnetGroupProps>
- Enclosing interface:
- CfnDBSubnetGroupProps
@Stability(Stable)
public static final class CfnDBSubnetGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSubnetGroupProps>
A builder for
CfnDBSubnetGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dbSubnetGroupDescription(String dbSubnetGroupDescription) Sets the value ofCfnDBSubnetGroupProps.getDbSubnetGroupDescription()dbSubnetGroupName(String dbSubnetGroupName) Sets the value ofCfnDBSubnetGroupProps.getDbSubnetGroupName()Sets the value ofCfnDBSubnetGroupProps.getSubnetIds()Sets the value ofCfnDBSubnetGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dbSubnetGroupDescription
@Stability(Stable) public CfnDBSubnetGroupProps.Builder dbSubnetGroupDescription(String dbSubnetGroupDescription) Sets the value ofCfnDBSubnetGroupProps.getDbSubnetGroupDescription()- Parameters:
dbSubnetGroupDescription- The description for the DB subnet group. This parameter is required.- Returns:
this
-
subnetIds
Sets the value ofCfnDBSubnetGroupProps.getSubnetIds()- Parameters:
subnetIds- The EC2 Subnet IDs for the DB subnet group. This parameter is required.- Returns:
this
-
dbSubnetGroupName
Sets the value ofCfnDBSubnetGroupProps.getDbSubnetGroupName()- Parameters:
dbSubnetGroupName- The name for the DB subnet group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must not be "Default".Example:
mysubnetgroup- Returns:
this
-
tags
Sets the value ofCfnDBSubnetGroupProps.getTags()- Parameters:
tags- An optional array of key-value pairs to apply to this DB subnet group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBSubnetGroupProps>- Returns:
- a new instance of
CfnDBSubnetGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-