Class CfnDBSubnetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.neptune.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
-
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
- Provides the description of the DB subnet group. This parameter is required.- Returns:
this
-
subnetIds
Sets the value ofCfnDBSubnetGroupProps.getSubnetIds()
- Parameters:
subnetIds
- The Amazon EC2 subnet IDs for the DB subnet group. This parameter is required.- Returns:
this
-
dbSubnetGroupName
Sets the value ofCfnDBSubnetGroupProps.getDbSubnetGroupName()
- Parameters:
dbSubnetGroupName
- The name of the DB subnet group.- Returns:
this
-
tags
Sets the value ofCfnDBSubnetGroupProps.getTags()
- Parameters:
tags
- The tags that you want to attach to the DB subnet group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBSubnetGroupProps>
- Returns:
- a new instance of
CfnDBSubnetGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-