Class AllocatedSubnet.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.AllocatedSubnet.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AllocatedSubnet>
- Enclosing interface:
AllocatedSubnet
@Stability(Stable)
public static final class AllocatedSubnet.Builder
extends Object
implements software.amazon.jsii.Builder<AllocatedSubnet>
A builder for
AllocatedSubnet-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAllocatedSubnet.getCidr()Sets the value ofAllocatedSubnet.getIpv6Cidr()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofAllocatedSubnet.getCidr()- Parameters:
cidr- IPv4 CIDR Allocations for a Subnet. This parameter is required. Note this is specific to the IPv4 CIDR.- Returns:
this
-
ipv6Cidr
Sets the value ofAllocatedSubnet.getIpv6Cidr()- Parameters:
ipv6Cidr- IPv6 CIDR Allocations for a Subnet. Note this is specific to the IPv6 CIDR.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AllocatedSubnet>- Returns:
- a new instance of
AllocatedSubnet - Throws:
NullPointerException- if any required attribute was not provided
-