Class VpcLinkProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.VpcLinkProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcLinkProps>
- Enclosing interface:
VpcLinkProps
@Stability(Stable)
public static final class VpcLinkProps.Builder
extends Object
implements software.amazon.jsii.Builder<VpcLinkProps>
A builder for
VpcLinkProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcLinkProps.getSecurityGroups()
subnets
(SubnetSelection subnets) Sets the value ofVpcLinkProps.getSubnets()
Sets the value ofVpcLinkProps.getVpc()
vpcLinkName
(String vpcLinkName) Sets the value ofVpcLinkProps.getVpcLinkName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofVpcLinkProps.getVpc()
- Parameters:
vpc
- The VPC in which the private resources reside. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Stable) public VpcLinkProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcLinkProps.getSecurityGroups()
- Parameters:
securityGroups
- A list of security groups for the VPC link.- Returns:
this
-
subnets
Sets the value ofVpcLinkProps.getSubnets()
- Parameters:
subnets
- A list of subnets for the VPC link.- Returns:
this
-
vpcLinkName
Sets the value ofVpcLinkProps.getVpcLinkName()
- Parameters:
vpcLinkName
- The name used to label and identify the VPC link.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpcLinkProps>
- Returns:
- a new instance of
VpcLinkProps
- Throws:
NullPointerException
- if any required attribute was not provided
-