Class RequestedSubnet.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.RequestedSubnet.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RequestedSubnet>
- Enclosing interface:
RequestedSubnet
@Stability(Stable)
public static final class RequestedSubnet.Builder
extends Object
implements software.amazon.jsii.Builder<RequestedSubnet>
A builder for
RequestedSubnet-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofRequestedSubnet.getAvailabilityZone()build()Builds the configured instance.configuration(SubnetConfiguration configuration) Sets the value ofRequestedSubnet.getConfiguration()subnetConstructId(String subnetConstructId) Sets the value ofRequestedSubnet.getSubnetConstructId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
Sets the value ofRequestedSubnet.getAvailabilityZone()- Parameters:
availabilityZone- The availability zone for the subnet. This parameter is required.- Returns:
this
-
configuration
Sets the value ofRequestedSubnet.getConfiguration()- Parameters:
configuration- Specify configuration parameters for a single subnet group in a VPC. This parameter is required.- Returns:
this
-
subnetConstructId
Sets the value ofRequestedSubnet.getSubnetConstructId()- Parameters:
subnetConstructId- Id for the Subnet construct. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RequestedSubnet>- Returns:
- a new instance of
RequestedSubnet - Throws:
NullPointerException- if any required attribute was not provided
-