Class VpcLookupOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpcLookupOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcLookupOptions>
- Enclosing interface:
- VpcLookupOptions
@Stability(Stable)
public static final class VpcLookupOptions.Builder
extends Object
implements software.amazon.jsii.Builder<VpcLookupOptions>
A builder for
VpcLookupOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofVpcLookupOptions.getIsDefault()Sets the value ofVpcLookupOptions.getRegion()subnetGroupNameTag(String subnetGroupNameTag) Sets the value ofVpcLookupOptions.getSubnetGroupNameTag()Sets the value ofVpcLookupOptions.getTags()Sets the value ofVpcLookupOptions.getVpcId()Sets the value ofVpcLookupOptions.getVpcName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isDefault
Sets the value ofVpcLookupOptions.getIsDefault()- Parameters:
isDefault- Whether to match the default VPC.- Returns:
this
-
region
Sets the value ofVpcLookupOptions.getRegion()- Parameters:
region- Optional to override inferred region.- Returns:
this
-
subnetGroupNameTag
Sets the value ofVpcLookupOptions.getSubnetGroupNameTag()- Parameters:
subnetGroupNameTag- Optional tag for subnet group name. If not provided, we'll look at the aws-cdk:subnet-name tag. If the subnet does not have the specified tag, we'll use its type as the name.- Returns:
this
-
tags
Sets the value ofVpcLookupOptions.getTags()- Parameters:
tags- Tags on the VPC. The VPC must have all of these tags- Returns:
this
-
vpcId
Sets the value ofVpcLookupOptions.getVpcId()- Parameters:
vpcId- The ID of the VPC. If given, will import exactly this VPC.- Returns:
this
-
vpcName
Sets the value ofVpcLookupOptions.getVpcName()- Parameters:
vpcName- The name of the VPC. If given, will import the VPC with this name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcLookupOptions>- Returns:
- a new instance of
VpcLookupOptions - Throws:
NullPointerException- if any required attribute was not provided
-