Class CfnVPCCidrBlock.Builder

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

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

    • create

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

      @Stability(Stable) public CfnVPCCidrBlock.Builder vpcId(String vpcId)
      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC. This parameter is required.
      Returns:
      this
    • amazonProvidedIpv6CidrBlock

      @Stability(Stable) public CfnVPCCidrBlock.Builder amazonProvidedIpv6CidrBlock(Boolean amazonProvidedIpv6CidrBlock)
      Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.

      You cannot specify the range of IPv6 addresses, or the size of the CIDR block.

      Parameters:
      amazonProvidedIpv6CidrBlock - Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. This parameter is required.
      Returns:
      this
    • amazonProvidedIpv6CidrBlock

      @Stability(Stable) public CfnVPCCidrBlock.Builder amazonProvidedIpv6CidrBlock(IResolvable amazonProvidedIpv6CidrBlock)
      Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.

      You cannot specify the range of IPv6 addresses, or the size of the CIDR block.

      Parameters:
      amazonProvidedIpv6CidrBlock - Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. This parameter is required.
      Returns:
      this
    • cidrBlock

      @Stability(Stable) public CfnVPCCidrBlock.Builder cidrBlock(String cidrBlock)
      An IPv4 CIDR block to associate with the VPC.

      Parameters:
      cidrBlock - An IPv4 CIDR block to associate with the VPC. This parameter is required.
      Returns:
      this
    • ipv4IpamPoolId

      @Stability(Stable) public CfnVPCCidrBlock.Builder ipv4IpamPoolId(String ipv4IpamPoolId)
      Associate a CIDR allocated from an IPv4 IPAM pool to a VPC.

      For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .

      Parameters:
      ipv4IpamPoolId - Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. This parameter is required.
      Returns:
      this
    • ipv4NetmaskLength

      @Stability(Stable) public CfnVPCCidrBlock.Builder ipv4NetmaskLength(Number ipv4NetmaskLength)
      The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.

      For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .

      Parameters:
      ipv4NetmaskLength - The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. This parameter is required.
      Returns:
      this
    • ipv6CidrBlock

      @Stability(Stable) public CfnVPCCidrBlock.Builder ipv6CidrBlock(String ipv6CidrBlock)
      An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool in the request.

      To let Amazon choose the IPv6 CIDR block for you, omit this parameter.

      Parameters:
      ipv6CidrBlock - An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool in the request. This parameter is required.
      Returns:
      this
    • ipv6IpamPoolId

      @Stability(Stable) public CfnVPCCidrBlock.Builder ipv6IpamPoolId(String ipv6IpamPoolId)
      Associates a CIDR allocated from an IPv6 IPAM pool to a VPC.

      For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .

      Parameters:
      ipv6IpamPoolId - Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. This parameter is required.
      Returns:
      this
    • ipv6NetmaskLength

      @Stability(Stable) public CfnVPCCidrBlock.Builder ipv6NetmaskLength(Number ipv6NetmaskLength)
      The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.

      For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .

      Parameters:
      ipv6NetmaskLength - The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. This parameter is required.
      Returns:
      this
    • ipv6Pool

      @Stability(Stable) public CfnVPCCidrBlock.Builder ipv6Pool(String ipv6Pool)
      The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.

      Parameters:
      ipv6Pool - The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. This parameter is required.
      Returns:
      this
    • build

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