public static final class CfnIPAMAllocationProps.Builder
extends java.lang.Object
CfnIPAMAllocationProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnIPAMAllocationProps |
build()
Builds the configured instance.
|
CfnIPAMAllocationProps.Builder |
cidr(java.lang.String cidr)
Sets the value of
CfnIPAMAllocationProps.getCidr() |
CfnIPAMAllocationProps.Builder |
description(java.lang.String description)
Sets the value of
CfnIPAMAllocationProps.getDescription() |
CfnIPAMAllocationProps.Builder |
ipamPoolId(java.lang.String ipamPoolId)
Sets the value of
CfnIPAMAllocationProps.getIpamPoolId() |
CfnIPAMAllocationProps.Builder |
netmaskLength(java.lang.Number netmaskLength)
Sets the value of
CfnIPAMAllocationProps.getNetmaskLength() |
public CfnIPAMAllocationProps.Builder ipamPoolId(java.lang.String ipamPoolId)
CfnIPAMAllocationProps.getIpamPoolId()
ipamPoolId
- The ID of the IPAM pool from which you would like to allocate a CIDR. This parameter is required.this
public CfnIPAMAllocationProps.Builder cidr(java.lang.String cidr)
CfnIPAMAllocationProps.getCidr()
cidr
- The CIDR you would like to allocate from the IPAM pool. Note the following:.
Possible values: Any available IPv4 or IPv6 CIDR.
this
public CfnIPAMAllocationProps.Builder description(java.lang.String description)
CfnIPAMAllocationProps.getDescription()
description
- A description for the allocation.this
public CfnIPAMAllocationProps.Builder netmaskLength(java.lang.Number netmaskLength)
CfnIPAMAllocationProps.getNetmaskLength()
netmaskLength
- The netmask length of the CIDR you would like to allocate from the IPAM pool. Note the following:.
Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
this
public CfnIPAMAllocationProps build()
CfnIPAMAllocationProps
java.lang.NullPointerException
- if any required attribute was not provided