Class CfnVPNGatewayProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPNGatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNGatewayProps>
- Enclosing interface:
- CfnVPNGatewayProps
@Stability(Stable)
public static final class CfnVPNGatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPNGatewayProps>
A builder for
CfnVPNGatewayProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn(Number amazonSideAsn) Sets the value ofCfnVPNGatewayProps.getAmazonSideAsn()build()Builds the configured instance.Sets the value ofCfnVPNGatewayProps.getTags()Sets the value ofCfnVPNGatewayProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnVPNGatewayProps.getType()- Parameters:
type- The type of VPN connection the virtual private gateway supports. This parameter is required.- Returns:
this
-
amazonSideAsn
Sets the value ofCfnVPNGatewayProps.getAmazonSideAsn()- Parameters:
amazonSideAsn- The private Autonomous System Number (ASN) for the Amazon side of a BGP session.- Returns:
this
-
tags
Sets the value ofCfnVPNGatewayProps.getTags()- Parameters:
tags- Any tags assigned to the virtual private gateway.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPNGatewayProps>- Returns:
- a new instance of
CfnVPNGatewayProps - Throws:
NullPointerException- if any required attribute was not provided
-