Class VPNGatewayV2Options.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2Options.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VPNGatewayV2Options>
- Enclosing interface:
VPNGatewayV2Options
@Stability(Experimental)
public static final class VPNGatewayV2Options.Builder
extends Object
implements software.amazon.jsii.Builder<VPNGatewayV2Options>
A builder for
VPNGatewayV2Options
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn
(Number amazonSideAsn) Sets the value ofVPNGatewayV2Options.getAmazonSideAsn()
build()
Builds the configured instance.type
(VpnConnectionType type) Sets the value ofVPNGatewayV2Options.getType()
vpnGatewayName
(String vpnGatewayName) Sets the value ofVPNGatewayV2Options.getVpnGatewayName()
vpnRoutePropagation
(List<? extends SubnetSelection> vpnRoutePropagation) Sets the value ofVPNGatewayV2Options.getVpnRoutePropagation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofVPNGatewayV2Options.getType()
- Parameters:
type
- The type of VPN connection the virtual private gateway supports. This parameter is required.- Returns:
this
-
amazonSideAsn
Sets the value ofVPNGatewayV2Options.getAmazonSideAsn()
- Parameters:
amazonSideAsn
- The private Autonomous System Number (ASN) for the Amazon side of a BGP session.- Returns:
this
-
vpnGatewayName
Sets the value ofVPNGatewayV2Options.getVpnGatewayName()
- Parameters:
vpnGatewayName
- The resource name of the VPN gateway.- Returns:
this
-
vpnRoutePropagation
@Stability(Experimental) public VPNGatewayV2Options.Builder vpnRoutePropagation(List<? extends SubnetSelection> vpnRoutePropagation) Sets the value ofVPNGatewayV2Options.getVpnRoutePropagation()
- Parameters:
vpnRoutePropagation
- Subnets where the route propagation should be added.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VPNGatewayV2Options>
- Returns:
- a new instance of
VPNGatewayV2Options
- Throws:
NullPointerException
- if any required attribute was not provided
-