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>
A builder for
CfnIPAMAllocationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnIPAMAllocationMixinProps.getCidr()description(String description) Sets the value ofCfnIPAMAllocationMixinProps.getDescription()ipamPoolId(String ipamPoolId) Sets the value ofCfnIPAMAllocationMixinProps.getIpamPoolId()netmaskLength(Number netmaskLength) Sets the value ofCfnIPAMAllocationMixinProps.getNetmaskLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofCfnIPAMAllocationMixinProps.getCidr()- 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
Sets the value ofCfnIPAMAllocationMixinProps.getDescription()- Parameters:
description- A description for the allocation.- Returns:
this
-
ipamPoolId
Sets the value ofCfnIPAMAllocationMixinProps.getIpamPoolId()- Parameters:
ipamPoolId- The ID of the IPAM pool from which you would like to allocate a CIDR.- Returns:
this
-
netmaskLength
Sets the value ofCfnIPAMAllocationMixinProps.getNetmaskLength()- 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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIPAMAllocationMixinProps>- Returns:
- a new instance of
CfnIPAMAllocationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-