Class CfnVpcLinkProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnVpcLinkProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcLinkProps>
- Enclosing interface:
CfnVpcLinkProps
@Stability(Stable)
public static final class CfnVpcLinkProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcLinkProps>
A builder for
CfnVpcLinkProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnVpcLinkProps.getDescription()
Sets the value ofCfnVpcLinkProps.getName()
Sets the value ofCfnVpcLinkProps.getTags()
targetArns
(List<String> targetArns) Sets the value ofCfnVpcLinkProps.getTargetArns()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnVpcLinkProps.getName()
- Parameters:
name
- The name used to label and identify the VPC link. This parameter is required.- Returns:
this
-
targetArns
Sets the value ofCfnVpcLinkProps.getTargetArns()
- Parameters:
targetArns
- The ARN of the network load balancer of the VPC targeted by the VPC link. This parameter is required. The network load balancer must be owned by the same AWS account of the API owner.- Returns:
this
-
description
Sets the value ofCfnVpcLinkProps.getDescription()
- Parameters:
description
- The description of the VPC link.- Returns:
this
-
tags
Sets the value ofCfnVpcLinkProps.getTags()
- Parameters:
tags
- An array of arbitrary tags (key-value pairs) to associate with the VPC link.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVpcLinkProps>
- Returns:
- a new instance of
CfnVpcLinkProps
- Throws:
NullPointerException
- if any required attribute was not provided
-