Class CfnDBSubnetGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rds.CfnDBSubnetGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSubnetGroupMixinProps>
- Enclosing interface:
CfnDBSubnetGroupMixinProps
@Stability(Stable)
public static final class CfnDBSubnetGroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSubnetGroupMixinProps>
A builder for
CfnDBSubnetGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dbSubnetGroupDescription(String dbSubnetGroupDescription) Sets the value ofCfnDBSubnetGroupMixinProps.getDbSubnetGroupDescription()dbSubnetGroupName(String dbSubnetGroupName) Sets the value ofCfnDBSubnetGroupMixinProps.getDbSubnetGroupName()Sets the value ofCfnDBSubnetGroupMixinProps.getSubnetIds()Sets the value ofCfnDBSubnetGroupMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dbSubnetGroupDescription
@Stability(Stable) public CfnDBSubnetGroupMixinProps.Builder dbSubnetGroupDescription(String dbSubnetGroupDescription) Sets the value ofCfnDBSubnetGroupMixinProps.getDbSubnetGroupDescription()- Parameters:
dbSubnetGroupDescription- The description for the DB subnet group.- Returns:
this
-
dbSubnetGroupName
@Stability(Stable) public CfnDBSubnetGroupMixinProps.Builder dbSubnetGroupName(String dbSubnetGroupName) Sets the value ofCfnDBSubnetGroupMixinProps.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 letters, numbers, periods, underscores, spaces, or hyphens.
- Must not be default.
- First character must be a letter.
Example:
mydbsubnetgroup- Returns:
this
-
subnetIds
@Stability(Stable) public CfnDBSubnetGroupMixinProps.Builder subnetIds(List<? extends Object> subnetIds) Sets the value ofCfnDBSubnetGroupMixinProps.getSubnetIds()- Parameters:
subnetIds- The EC2 Subnet IDs for the DB subnet group.- Returns:
this
-
tags
Sets the value ofCfnDBSubnetGroupMixinProps.getTags()- Parameters:
tags- Tags to assign to the DB subnet group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBSubnetGroupMixinProps>- Returns:
- a new instance of
CfnDBSubnetGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-