Class SubnetIpamOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.SubnetIpamOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubnetIpamOptions>
- Enclosing interface:
SubnetIpamOptions
@Stability(Stable)
public static final class SubnetIpamOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SubnetIpamOptions>
A builder for
SubnetIpamOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocatedSubnets
(List<? extends AllocatedSubnet> allocatedSubnets) Sets the value ofSubnetIpamOptions.getAllocatedSubnets()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocatedSubnets
@Stability(Stable) public SubnetIpamOptions.Builder allocatedSubnets(List<? extends AllocatedSubnet> allocatedSubnets) Sets the value ofSubnetIpamOptions.getAllocatedSubnets()
- Parameters:
allocatedSubnets
- CIDR Allocations for Subnets. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SubnetIpamOptions>
- Returns:
- a new instance of
SubnetIpamOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-