Class SubnetReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.SubnetReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubnetReference>
- Enclosing interface:
SubnetReference
@Stability(Stable)
public static final class SubnetReference.Builder
extends Object
implements software.amazon.jsii.Builder<SubnetReference>
A builder for
SubnetReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSubnetReference.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetId
Sets the value ofSubnetReference.getSubnetId()
- Parameters:
subnetId
- The SubnetId of the Subnet resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SubnetReference>
- Returns:
- a new instance of
SubnetReference
- Throws:
NullPointerException
- if any required attribute was not provided
-