Class CfnDBSubnetGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.docdb.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 subnet group.- Returns:
this
-
dbSubnetGroupName
@Stability(Stable) public CfnDBSubnetGroupMixinProps.Builder dbSubnetGroupName(String dbSubnetGroupName) Sets the value ofCfnDBSubnetGroupMixinProps.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
-
subnetIds
Sets the value ofCfnDBSubnetGroupMixinProps.getSubnetIds()- Parameters:
subnetIds- The Amazon EC2 subnet IDs for the subnet group.- Returns:
this
-
tags
Sets the value ofCfnDBSubnetGroupMixinProps.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<CfnDBSubnetGroupMixinProps>- Returns:
- a new instance of
CfnDBSubnetGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-