Class IPAMAllocationReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ec2.IPAMAllocationReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IPAMAllocationReference>
- Enclosing interface:
IPAMAllocationReference
@Stability(Stable)
public static final class IPAMAllocationReference.Builder
extends Object
implements software.amazon.jsii.Builder<IPAMAllocationReference>
A builder for
IPAMAllocationReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofIPAMAllocationReference.getCidr()ipamPoolAllocationId(String ipamPoolAllocationId) Sets the value ofIPAMAllocationReference.getIpamPoolAllocationId()ipamPoolId(String ipamPoolId) Sets the value ofIPAMAllocationReference.getIpamPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofIPAMAllocationReference.getCidr()- Parameters:
cidr- The Cidr of the IPAMAllocation resource. This parameter is required.- Returns:
this
-
ipamPoolAllocationId
@Stability(Stable) public IPAMAllocationReference.Builder ipamPoolAllocationId(String ipamPoolAllocationId) Sets the value ofIPAMAllocationReference.getIpamPoolAllocationId()- Parameters:
ipamPoolAllocationId- The IpamPoolAllocationId of the IPAMAllocation resource. This parameter is required.- Returns:
this
-
ipamPoolId
Sets the value ofIPAMAllocationReference.getIpamPoolId()- Parameters:
ipamPoolId- The IpamPoolId of the IPAMAllocation resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IPAMAllocationReference>- Returns:
- a new instance of
IPAMAllocationReference - Throws:
NullPointerException- if any required attribute was not provided
-