public static final class VpcLookupOptions.Builder
extends java.lang.Object
VpcLookupOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VpcLookupOptions |
build()
Builds the configured instance.
|
VpcLookupOptions.Builder |
isDefault(java.lang.Boolean isDefault)
Sets the value of
VpcLookupOptions.getIsDefault() |
VpcLookupOptions.Builder |
region(java.lang.String region)
Sets the value of
VpcLookupOptions.getRegion() |
VpcLookupOptions.Builder |
subnetGroupNameTag(java.lang.String subnetGroupNameTag)
Sets the value of
VpcLookupOptions.getSubnetGroupNameTag() |
VpcLookupOptions.Builder |
tags(java.util.Map<java.lang.String,java.lang.String> tags)
Sets the value of
VpcLookupOptions.getTags() |
VpcLookupOptions.Builder |
vpcId(java.lang.String vpcId)
Sets the value of
VpcLookupOptions.getVpcId() |
VpcLookupOptions.Builder |
vpcName(java.lang.String vpcName)
Sets the value of
VpcLookupOptions.getVpcName() |
public VpcLookupOptions.Builder isDefault(java.lang.Boolean isDefault)
VpcLookupOptions.getIsDefault()
isDefault
- Whether to match the default VPC.this
public VpcLookupOptions.Builder region(java.lang.String region)
VpcLookupOptions.getRegion()
region
- Optional to override inferred region.this
public VpcLookupOptions.Builder subnetGroupNameTag(java.lang.String subnetGroupNameTag)
VpcLookupOptions.getSubnetGroupNameTag()
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.this
public VpcLookupOptions.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
VpcLookupOptions.getTags()
tags
- Tags on the VPC.
The VPC must have all of these tagsthis
public VpcLookupOptions.Builder vpcId(java.lang.String vpcId)
VpcLookupOptions.getVpcId()
vpcId
- The ID of the VPC.
If given, will import exactly this VPC.this
public VpcLookupOptions.Builder vpcName(java.lang.String vpcName)
VpcLookupOptions.getVpcName()
vpcName
- The name of the VPC.
If given, will import the VPC with this name.this
public VpcLookupOptions build()
VpcLookupOptions
java.lang.NullPointerException
- if any required attribute was not provided