Class CfnDBSubnetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.docdb.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 subnet group. This parameter is required.- Returns:
this
-
subnetIds
Sets the value ofCfnDBSubnetGroupProps.getSubnetIds()- Parameters:
subnetIds- The Amazon EC2 subnet IDs for the subnet group. This parameter is required.- Returns:
this
-
dbSubnetGroupName
Sets the value ofCfnDBSubnetGroupProps.getDbSubnetGroupName()- Parameters:
dbSubnetGroupName- The name for the 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.Example:
mySubnetgroup- Returns:
this
-
tags
Sets the value ofCfnDBSubnetGroupProps.getTags()- Parameters:
tags- The tags to be assigned to the 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
-