Class SubnetV2Attributes.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.SubnetV2Attributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubnetV2Attributes>
- Enclosing interface:
SubnetV2Attributes
@Stability(Experimental)
public static final class SubnetV2Attributes.Builder
extends Object
implements software.amazon.jsii.Builder<SubnetV2Attributes>
A builder for
SubnetV2Attributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofSubnetV2Attributes.getAvailabilityZone()build()Builds the configured instance.ipv4CidrBlock(String ipv4CidrBlock) Sets the value ofSubnetV2Attributes.getIpv4CidrBlock()ipv6CidrBlock(String ipv6CidrBlock) Sets the value ofSubnetV2Attributes.getIpv6CidrBlock()routeTableId(String routeTableId) Sets the value ofSubnetV2Attributes.getRouteTableId()Sets the value ofSubnetV2Attributes.getSubnetId()subnetName(String subnetName) Sets the value ofSubnetV2Attributes.getSubnetName()subnetType(SubnetType subnetType) Sets the value ofSubnetV2Attributes.getSubnetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Experimental) public SubnetV2Attributes.Builder availabilityZone(String availabilityZone) Sets the value ofSubnetV2Attributes.getAvailabilityZone()- Parameters:
availabilityZone- The Availability Zone this subnet is located in. This parameter is required.- Returns:
this
-
ipv4CidrBlock
Sets the value ofSubnetV2Attributes.getIpv4CidrBlock()- Parameters:
ipv4CidrBlock- The IPv4 CIDR block associated with the subnet. This parameter is required.- Returns:
this
-
subnetId
Sets the value ofSubnetV2Attributes.getSubnetId()- Parameters:
subnetId- The subnetId for this particular subnet. This parameter is required.- Returns:
this
-
subnetType
Sets the value ofSubnetV2Attributes.getSubnetType()- Parameters:
subnetType- The type of subnet (public or private) that this subnet represents. This parameter is required.- Returns:
this
-
ipv6CidrBlock
Sets the value ofSubnetV2Attributes.getIpv6CidrBlock()- Parameters:
ipv6CidrBlock- The IPv4 CIDR block associated with the subnet.- Returns:
this
-
routeTableId
Sets the value ofSubnetV2Attributes.getRouteTableId()- Parameters:
routeTableId- The ID of the route table for this particular subnet.- Returns:
this
-
subnetName
Sets the value ofSubnetV2Attributes.getSubnetName()- Parameters:
subnetName- Name of the given subnet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SubnetV2Attributes>- Returns:
- a new instance of
SubnetV2Attributes - Throws:
NullPointerException- if any required attribute was not provided
-