Class IpamOptions.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • cidrBlockName

      @Stability(Experimental) public IpamOptions.Builder cidrBlockName(String cidrBlockName)
      Parameters:
      cidrBlockName - Required to set Secondary cidr block resource name in order to generate unique logical id for the resource. This parameter is required.
      Returns:
      this
    • ipamPool

      @Stability(Experimental) public IpamOptions.Builder ipamPool(IIpamPool ipamPool)
      Sets the value of IpamOptions.getIpamPool()
      Parameters:
      ipamPool - Ipv4 or an Ipv6 IPAM pool Only required when using AWS Ipam.
      Returns:
      this
    • netmaskLength

      @Stability(Experimental) public IpamOptions.Builder netmaskLength(Number netmaskLength)
      Parameters:
      netmaskLength - CIDR Mask for Vpc Only required when using AWS Ipam.
      Returns:
      this
    • build

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