Class CfnClusterSubnetGroup.Builder

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

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

    • create

      @Stability(Stable) public static CfnClusterSubnetGroup.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 CfnClusterSubnetGroup.Builder.
    • description

      @Stability(Stable) public CfnClusterSubnetGroup.Builder description(String description)
      A description for the subnet group.

      Parameters:
      description - A description for the subnet group. This parameter is required.
      Returns:
      this
    • subnetIds

      @Stability(Stable) public CfnClusterSubnetGroup.Builder subnetIds(List<String> subnetIds)
      An array of VPC subnet IDs.

      A maximum of 20 subnets can be modified in a single request.

      Parameters:
      subnetIds - An array of VPC subnet IDs. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnClusterSubnetGroup.Builder tags(List<? extends CfnTag> tags)
      Specifies an arbitrary set of tags (key–value pairs) to associate with this subnet group.

      Use tags to manage your resources.

      Parameters:
      tags - Specifies an arbitrary set of tags (key–value pairs) to associate with this subnet group. This parameter is required.
      Returns:
      this
    • build

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