Class VpcContextQuery.Builder
java.lang.Object
software.amazon.awscdk.cloudassembly.schema.VpcContextQuery.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcContextQuery>
- Enclosing interface:
- VpcContextQuery
@Stability(Stable)
public static final class VpcContextQuery.Builder
extends Object
implements software.amazon.jsii.Builder<VpcContextQuery>
A builder for
VpcContextQuery-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofVpcContextQuery.getAccount()build()Builds the configured instance.Sets the value ofVpcContextQuery.getFilter()lookupRoleArn(String lookupRoleArn) Sets the value ofVpcContextQuery.getLookupRoleArn()Sets the value ofVpcContextQuery.getRegion()returnAsymmetricSubnets(Boolean returnAsymmetricSubnets) Sets the value ofVpcContextQuery.getReturnAsymmetricSubnets()subnetGroupNameTag(String subnetGroupNameTag) Sets the value ofVpcContextQuery.getSubnetGroupNameTag()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
account
Sets the value ofVpcContextQuery.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
filter
Sets the value ofVpcContextQuery.getFilter()- Parameters:
filter- Filters to apply to the VPC. This parameter is required. Filter parameters are the same as passed to DescribeVpcs.- Returns:
this
-
region
Sets the value ofVpcContextQuery.getRegion()- Parameters:
region- Query region. This parameter is required.- Returns:
this
-
lookupRoleArn
Sets the value ofVpcContextQuery.getLookupRoleArn()- Parameters:
lookupRoleArn- The ARN of the role that should be used to look up the missing values.- Returns:
this
-
returnAsymmetricSubnets
@Stability(Stable) public VpcContextQuery.Builder returnAsymmetricSubnets(Boolean returnAsymmetricSubnets) Sets the value ofVpcContextQuery.getReturnAsymmetricSubnets()- Parameters:
returnAsymmetricSubnets- Whether to populate the subnetGroups field of theVpcContextResponse, which contains potentially asymmetric subnet groups.- Returns:
this
-
subnetGroupNameTag
Sets the value ofVpcContextQuery.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcContextQuery>- Returns:
- a new instance of
VpcContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-