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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofAllocatedSubnet.getCidr()- Parameters:
cidr- Cidr Allocations for a Subnet. This parameter is required.- 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
-