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