Class CfnIPAMAllocationMixinProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • cidr

      @Stability(Stable) public CfnIPAMAllocationMixinProps.Builder cidr(String cidr)
      Parameters:
      cidr - The CIDR you would like to allocate from the IPAM pool. Note the following:.
      • If there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
      • If the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.

      Possible values: Any available IPv4 or IPv6 CIDR.

      Returns:
      this
    • description

      @Stability(Stable) public CfnIPAMAllocationMixinProps.Builder description(String description)
      Parameters:
      description - A description for the allocation.
      Returns:
      this
    • ipamPoolId

      @Stability(Stable) public CfnIPAMAllocationMixinProps.Builder ipamPoolId(String ipamPoolId)
      Parameters:
      ipamPoolId - The ID of the IPAM pool from which you would like to allocate a CIDR.
      Returns:
      this
    • netmaskLength

      @Stability(Stable) public CfnIPAMAllocationMixinProps.Builder netmaskLength(Number netmaskLength)
      Parameters:
      netmaskLength - The netmask length of the CIDR you would like to allocate from the IPAM pool. Note the following:.
      • If there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
      • If the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.

      Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.

      Returns:
      this
    • build

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