Class CfnDBSubnetGroup.Builder

java.lang.Object
software.amazon.awscdk.services.neptune.CfnDBSubnetGroup.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSubnetGroup>
Enclosing class:
CfnDBSubnetGroup

@Stability(Stable) public static final class CfnDBSubnetGroup.Builder extends Object implements software.amazon.jsii.Builder<CfnDBSubnetGroup>
A fluent builder for CfnDBSubnetGroup.
  • Method Details

    • create

      @Stability(Stable) public static CfnDBSubnetGroup.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDBSubnetGroup.Builder.
    • dbSubnetGroupDescription

      @Stability(Stable) public CfnDBSubnetGroup.Builder dbSubnetGroupDescription(String dbSubnetGroupDescription)
      Provides the description of the DB subnet group.

      Parameters:
      dbSubnetGroupDescription - Provides the description of the DB subnet group. This parameter is required.
      Returns:
      this
    • subnetIds

      @Stability(Stable) public CfnDBSubnetGroup.Builder subnetIds(List<String> subnetIds)
      The Amazon EC2 subnet IDs for the DB subnet group.

      Parameters:
      subnetIds - The Amazon EC2 subnet IDs for the DB subnet group. This parameter is required.
      Returns:
      this
    • dbSubnetGroupName

      @Stability(Stable) public CfnDBSubnetGroup.Builder dbSubnetGroupName(String dbSubnetGroupName)
      The name of the DB subnet group.

      Parameters:
      dbSubnetGroupName - The name of the DB subnet group. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnDBSubnetGroup.Builder tags(List<? extends CfnTag> tags)
      The tags that you want to attach to the DB subnet group.

      Parameters:
      tags - The tags that you want to attach to the DB subnet group. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDBSubnetGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDBSubnetGroup>
      Returns:
      a newly built instance of CfnDBSubnetGroup.