Class CfnSubnetGroup.Builder

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

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

    • create

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

      @Stability(Stable) public CfnSubnetGroup.Builder subnetGroupName(String subnetGroupName)
      The name of the subnet group to be used for the cluster .

      Parameters:
      subnetGroupName - The name of the subnet group to be used for the cluster . This parameter is required.
      Returns:
      this
    • subnetIds

      @Stability(Stable) public CfnSubnetGroup.Builder subnetIds(List<String> subnetIds)
      A list of Amazon VPC subnet IDs for the subnet group.

      Parameters:
      subnetIds - A list of Amazon VPC subnet IDs for the subnet group. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnSubnetGroup.Builder description(String description)
      A description of the subnet group.

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

      @Stability(Stable) public CfnSubnetGroup.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

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