Class CfnVPNConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPNConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNConnectionProps>
- Enclosing interface:
- CfnVPNConnectionProps
@Stability(Stable)
public static final class CfnVPNConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPNConnectionProps>
A builder for
CfnVPNConnectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customerGatewayId(String customerGatewayId) Sets the value ofCfnVPNConnectionProps.getCustomerGatewayId()staticRoutesOnly(Boolean staticRoutesOnly) Sets the value ofCfnVPNConnectionProps.getStaticRoutesOnly()staticRoutesOnly(IResolvable staticRoutesOnly) Sets the value ofCfnVPNConnectionProps.getStaticRoutesOnly()Sets the value ofCfnVPNConnectionProps.getTags()transitGatewayId(String transitGatewayId) Sets the value ofCfnVPNConnectionProps.getTransitGatewayId()Sets the value ofCfnVPNConnectionProps.getType()vpnGatewayId(String vpnGatewayId) Sets the value ofCfnVPNConnectionProps.getVpnGatewayId()vpnTunnelOptionsSpecifications(List<? extends Object> vpnTunnelOptionsSpecifications) Sets the value ofCfnVPNConnectionProps.getVpnTunnelOptionsSpecifications()vpnTunnelOptionsSpecifications(IResolvable vpnTunnelOptionsSpecifications) Sets the value ofCfnVPNConnectionProps.getVpnTunnelOptionsSpecifications()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customerGatewayId
Sets the value ofCfnVPNConnectionProps.getCustomerGatewayId()- Parameters:
customerGatewayId- The ID of the customer gateway at your end of the VPN connection. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnVPNConnectionProps.getType()- Parameters:
type- The type of VPN connection. This parameter is required.- Returns:
this
-
staticRoutesOnly
Sets the value ofCfnVPNConnectionProps.getStaticRoutesOnly()- Parameters:
staticRoutesOnly- Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.If you are creating a VPN connection for a device that does not support Border Gateway Protocol (BGP), you must specify
true.- Returns:
this
-
staticRoutesOnly
@Stability(Stable) public CfnVPNConnectionProps.Builder staticRoutesOnly(IResolvable staticRoutesOnly) Sets the value ofCfnVPNConnectionProps.getStaticRoutesOnly()- Parameters:
staticRoutesOnly- Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.If you are creating a VPN connection for a device that does not support Border Gateway Protocol (BGP), you must specify
true.- Returns:
this
-
tags
Sets the value ofCfnVPNConnectionProps.getTags()- Parameters:
tags- Any tags assigned to the VPN connection.- Returns:
this
-
transitGatewayId
Sets the value ofCfnVPNConnectionProps.getTransitGatewayId()- Parameters:
transitGatewayId- The ID of the transit gateway associated with the VPN connection. You must specify eitherTransitGatewayIdorVpnGatewayId, but not both.- Returns:
this
-
vpnGatewayId
Sets the value ofCfnVPNConnectionProps.getVpnGatewayId()- Parameters:
vpnGatewayId- The ID of the virtual private gateway at the AWS side of the VPN connection. You must specify eitherTransitGatewayIdorVpnGatewayId, but not both.- Returns:
this
-
vpnTunnelOptionsSpecifications
@Stability(Stable) public CfnVPNConnectionProps.Builder vpnTunnelOptionsSpecifications(IResolvable vpnTunnelOptionsSpecifications) Sets the value ofCfnVPNConnectionProps.getVpnTunnelOptionsSpecifications()- Parameters:
vpnTunnelOptionsSpecifications- The tunnel options for the VPN connection.- Returns:
this
-
vpnTunnelOptionsSpecifications
@Stability(Stable) public CfnVPNConnectionProps.Builder vpnTunnelOptionsSpecifications(List<? extends Object> vpnTunnelOptionsSpecifications) Sets the value ofCfnVPNConnectionProps.getVpnTunnelOptionsSpecifications()- Parameters:
vpnTunnelOptionsSpecifications- The tunnel options for the VPN connection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPNConnectionProps>- Returns:
- a new instance of
CfnVPNConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-