Class VpcLinkProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofVpcLinkProps.getDescription()targets(List<? extends INetworkLoadBalancer> targets) Sets the value ofVpcLinkProps.getTargets()vpcLinkName(String vpcLinkName) Sets the value ofVpcLinkProps.getVpcLinkName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofVpcLinkProps.getDescription()- Parameters:
description- The description of the VPC link.- Returns:
this
-
targets
@Stability(Stable) public VpcLinkProps.Builder targets(List<? extends INetworkLoadBalancer> targets) Sets the value ofVpcLinkProps.getTargets()- Parameters:
targets- The network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.- 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:
buildin interfacesoftware.amazon.jsii.Builder<VpcLinkProps>- Returns:
- a new instance of
VpcLinkProps - Throws:
NullPointerException- if any required attribute was not provided
-