Class VpcIpamOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpcIpamOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcIpamOptions>
- Enclosing interface:
VpcIpamOptions
@Stability(Stable)
public static final class VpcIpamOptions.Builder
extends Object
implements software.amazon.jsii.Builder<VpcIpamOptions>
A builder for
VpcIpamOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofVpcIpamOptions.getCidrBlock()
ipv4IpamPoolId
(String ipv4IpamPoolId) Sets the value ofVpcIpamOptions.getIpv4IpamPoolId()
ipv4NetmaskLength
(Number ipv4NetmaskLength) Sets the value ofVpcIpamOptions.getIpv4NetmaskLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidrBlock
Sets the value ofVpcIpamOptions.getCidrBlock()
- Parameters:
cidrBlock
- CIDR Block for Vpc.- Returns:
this
-
ipv4IpamPoolId
Sets the value ofVpcIpamOptions.getIpv4IpamPoolId()
- Parameters:
ipv4IpamPoolId
- ipv4 IPAM Pool Id.- Returns:
this
-
ipv4NetmaskLength
Sets the value ofVpcIpamOptions.getIpv4NetmaskLength()
- Parameters:
ipv4NetmaskLength
- CIDR Mask for Vpc.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpcIpamOptions>
- Returns:
- a new instance of
VpcIpamOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-