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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnIPAMPoolCidrProps.getCidr()
ipamPoolId
(String ipamPoolId) Sets the value ofCfnIPAMPoolCidrProps.getIpamPoolId()
netmaskLength
(Number netmaskLength) Sets the value ofCfnIPAMPoolCidrProps.getNetmaskLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipamPoolId
Sets the value ofCfnIPAMPoolCidrProps.getIpamPoolId()
- Parameters:
ipamPoolId
- The ID of the IPAM pool. This parameter is required.- Returns:
this
-
cidr
Sets the value ofCfnIPAMPoolCidrProps.getCidr()
- 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 is10.24.34.0/23
. An IPv6 CIDR example is2001:DB8::/32
.- Returns:
this
-
netmaskLength
Sets the value ofCfnIPAMPoolCidrProps.getNetmaskLength()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIPAMPoolCidrProps>
- Returns:
- a new instance of
CfnIPAMPoolCidrProps
- Throws:
NullPointerException
- if any required attribute was not provided
-