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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cidrBlockName(String cidrBlockName) Sets the value ofIpamOptions.getCidrBlockName()Sets the value ofIpamOptions.getIpamPool()netmaskLength(Number netmaskLength) Sets the value ofIpamOptions.getNetmaskLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidrBlockName
Sets the value ofIpamOptions.getCidrBlockName()- 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
Sets the value ofIpamOptions.getIpamPool()- Parameters:
ipamPool- Ipv4 or an Ipv6 IPAM pool Only required when using AWS Ipam.- Returns:
this
-
netmaskLength
Sets the value ofIpamOptions.getNetmaskLength()- Parameters:
netmaskLength- CIDR Mask for Vpc Only required when using AWS Ipam.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IpamOptions>- Returns:
- a new instance of
IpamOptions - Throws:
NullPointerException- if any required attribute was not provided
-