Class CfnSubnetCidrBlockProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSubnetCidrBlockProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetCidrBlockProps>
- Enclosing interface:
CfnSubnetCidrBlockProps
@Stability(Stable)
public static final class CfnSubnetCidrBlockProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetCidrBlockProps>
A builder for
CfnSubnetCidrBlockProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.ipv6CidrBlock
(String ipv6CidrBlock) Sets the value ofCfnSubnetCidrBlockProps.getIpv6CidrBlock()
Sets the value ofCfnSubnetCidrBlockProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipv6CidrBlock
Sets the value ofCfnSubnetCidrBlockProps.getIpv6CidrBlock()
- Parameters:
ipv6CidrBlock
- The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length. This parameter is required. This parameter is required for an IPv6 only subnet.- Returns:
this
-
subnetId
Sets the value ofCfnSubnetCidrBlockProps.getSubnetId()
- Parameters:
subnetId
- The ID of the subnet. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSubnetCidrBlockProps>
- Returns:
- a new instance of
CfnSubnetCidrBlockProps
- Throws:
NullPointerException
- if any required attribute was not provided
-