Class CfnIPAMPoolCidrProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • ipamPoolId

      @Stability(Stable) public CfnIPAMPoolCidrProps.Builder ipamPoolId(String ipamPoolId)
      Parameters:
      ipamPoolId - The ID of the IPAM pool. This parameter is required.
      Returns:
      this
    • cidr

      @Stability(Stable) public CfnIPAMPoolCidrProps.Builder cidr(String cidr)
      Parameters:
      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 .
      Returns:
      this
    • netmaskLength

      @Stability(Stable) public CfnIPAMPoolCidrProps.Builder netmaskLength(Number netmaskLength)
      Parameters:
      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.
      Returns:
      this
    • build

      @Stability(Stable) public CfnIPAMPoolCidrProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnIPAMPoolCidrProps>
      Returns:
      a new instance of CfnIPAMPoolCidrProps
      Throws:
      NullPointerException - if any required attribute was not provided