Class CfnIPAMPoolCidr.Builder

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

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

    • create

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

      @Stability(Stable) public CfnIPAMPoolCidr.Builder ipamPoolId(String ipamPoolId)
      The ID of the IPAM pool.

      Parameters:
      ipamPoolId - The ID of the IPAM pool. This parameter is required.
      Returns:
      this
    • cidr

      @Stability(Stable) public CfnIPAMPoolCidr.Builder cidr(String cidr)
      The CIDR provisioned to the IPAM pool.

      A CIDR is a representation of an IP address and its associated network mask (or netmask) and refers to a range of IP addresses. An IPv4 CIDR example is 10.24.34.0/23 . An IPv6 CIDR example is 2001:DB8::/32 .

      Parameters:
      cidr - The CIDR provisioned to the IPAM pool. This parameter is required.
      Returns:
      this
    • netmaskLength

      @Stability(Stable) public CfnIPAMPoolCidr.Builder netmaskLength(Number netmaskLength)
      The netmask length of the CIDR you'd like to provision to a pool.

      Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP CIDRs to top-level pools. "NetmaskLength" or "Cidr" is required.

      Parameters:
      netmaskLength - The netmask length of the CIDR you'd like to provision to a pool. This parameter is required.
      Returns:
      this
    • build

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