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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipv6CidrBlock(String ipv6CidrBlock) Sets the value ofCfnSubnetCidrBlockProps.getIpv6CidrBlock()ipv6IpamPoolId(String ipv6IpamPoolId) Sets the value ofCfnSubnetCidrBlockProps.getIpv6IpamPoolId()ipv6NetmaskLength(Number ipv6NetmaskLength) Sets the value ofCfnSubnetCidrBlockProps.getIpv6NetmaskLength()Sets the value ofCfnSubnetCidrBlockProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetId
Sets the value ofCfnSubnetCidrBlockProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet. This parameter is required.- Returns:
this
-
ipv6CidrBlock
Sets the value ofCfnSubnetCidrBlockProps.getIpv6CidrBlock()- Parameters:
ipv6CidrBlock- The IPv6 network range for the subnet, in CIDR notation.- Returns:
this
-
ipv6IpamPoolId
Sets the value ofCfnSubnetCidrBlockProps.getIpv6IpamPoolId()- Parameters:
ipv6IpamPoolId- An IPv6 IPAM pool ID for the subnet.- Returns:
this
-
ipv6NetmaskLength
@Stability(Stable) public CfnSubnetCidrBlockProps.Builder ipv6NetmaskLength(Number ipv6NetmaskLength) Sets the value ofCfnSubnetCidrBlockProps.getIpv6NetmaskLength()- Parameters:
ipv6NetmaskLength- An IPv6 netmask length for the subnet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetCidrBlockProps>- Returns:
- a new instance of
CfnSubnetCidrBlockProps - Throws:
NullPointerException- if any required attribute was not provided
-