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()customerGatewayId(ICustomerGatewayRef customerGatewayId) Sets the value ofCfnVPNConnectionProps.getCustomerGatewayId()enableAcceleration(Boolean enableAcceleration) Sets the value ofCfnVPNConnectionProps.getEnableAcceleration()enableAcceleration(IResolvable enableAcceleration) Sets the value ofCfnVPNConnectionProps.getEnableAcceleration()localIpv4NetworkCidr(String localIpv4NetworkCidr) Sets the value ofCfnVPNConnectionProps.getLocalIpv4NetworkCidr()localIpv6NetworkCidr(String localIpv6NetworkCidr) Sets the value ofCfnVPNConnectionProps.getLocalIpv6NetworkCidr()outsideIpAddressType(String outsideIpAddressType) Sets the value ofCfnVPNConnectionProps.getOutsideIpAddressType()preSharedKeyStorage(String preSharedKeyStorage) Sets the value ofCfnVPNConnectionProps.getPreSharedKeyStorage()remoteIpv4NetworkCidr(String remoteIpv4NetworkCidr) Sets the value ofCfnVPNConnectionProps.getRemoteIpv4NetworkCidr()remoteIpv6NetworkCidr(String remoteIpv6NetworkCidr) Sets the value ofCfnVPNConnectionProps.getRemoteIpv6NetworkCidr()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()transitGatewayId(ITransitGatewayRef transitGatewayId) Sets the value ofCfnVPNConnectionProps.getTransitGatewayId()transportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId) Sets the value ofCfnVPNConnectionProps.getTransportTransitGatewayAttachmentId()tunnelBandwidth(String tunnelBandwidth) Sets the value ofCfnVPNConnectionProps.getTunnelBandwidth()tunnelInsideIpVersion(String tunnelInsideIpVersion) Sets the value ofCfnVPNConnectionProps.getTunnelInsideIpVersion()Sets the value ofCfnVPNConnectionProps.getType()vpnConcentratorId(String vpnConcentratorId) Sets the value ofCfnVPNConnectionProps.getVpnConcentratorId()vpnGatewayId(String vpnGatewayId) Sets the value ofCfnVPNConnectionProps.getVpnGatewayId()vpnGatewayId(IVPNGatewayRef 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
-
customerGatewayId
@Stability(Stable) public CfnVPNConnectionProps.Builder customerGatewayId(ICustomerGatewayRef 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
-
enableAcceleration
@Stability(Stable) public CfnVPNConnectionProps.Builder enableAcceleration(Boolean enableAcceleration) Sets the value ofCfnVPNConnectionProps.getEnableAcceleration()- Parameters:
enableAcceleration- Indicate whether to enable acceleration for the VPN connection. Default:false- Returns:
this
-
enableAcceleration
@Stability(Stable) public CfnVPNConnectionProps.Builder enableAcceleration(IResolvable enableAcceleration) Sets the value ofCfnVPNConnectionProps.getEnableAcceleration()- Parameters:
enableAcceleration- Indicate whether to enable acceleration for the VPN connection. Default:false- Returns:
this
-
localIpv4NetworkCidr
@Stability(Stable) public CfnVPNConnectionProps.Builder localIpv4NetworkCidr(String localIpv4NetworkCidr) Sets the value ofCfnVPNConnectionProps.getLocalIpv4NetworkCidr()- Parameters:
localIpv4NetworkCidr- The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. Default:0.0.0.0/0- Returns:
this
-
localIpv6NetworkCidr
@Stability(Stable) public CfnVPNConnectionProps.Builder localIpv6NetworkCidr(String localIpv6NetworkCidr) Sets the value ofCfnVPNConnectionProps.getLocalIpv6NetworkCidr()- Parameters:
localIpv6NetworkCidr- The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. Default:::/0- Returns:
this
-
outsideIpAddressType
@Stability(Stable) public CfnVPNConnectionProps.Builder outsideIpAddressType(String outsideIpAddressType) Sets the value ofCfnVPNConnectionProps.getOutsideIpAddressType()- Parameters:
outsideIpAddressType- The type of IP address assigned to the outside interface of the customer gateway device. Valid values:PrivateIpv4|PublicIpv4|Ipv6Default:
PublicIpv4- Returns:
this
-
remoteIpv4NetworkCidr
@Stability(Stable) public CfnVPNConnectionProps.Builder remoteIpv4NetworkCidr(String remoteIpv4NetworkCidr) Sets the value ofCfnVPNConnectionProps.getRemoteIpv4NetworkCidr()- Parameters:
remoteIpv4NetworkCidr- The IPv4 CIDR on the AWS side of the VPN connection. Default:0.0.0.0/0- Returns:
this
-
remoteIpv6NetworkCidr
@Stability(Stable) public CfnVPNConnectionProps.Builder remoteIpv6NetworkCidr(String remoteIpv6NetworkCidr) Sets the value ofCfnVPNConnectionProps.getRemoteIpv6NetworkCidr()- Parameters:
remoteIpv6NetworkCidr- The IPv6 CIDR on the AWS side of the VPN connection. Default:::/0- 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
-
transitGatewayId
@Stability(Stable) public CfnVPNConnectionProps.Builder transitGatewayId(ITransitGatewayRef 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
-
transportTransitGatewayAttachmentId
@Stability(Stable) public CfnVPNConnectionProps.Builder transportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId) Sets the value ofCfnVPNConnectionProps.getTransportTransitGatewayAttachmentId()- Parameters:
transportTransitGatewayAttachmentId- The transit gateway attachment ID to use for the VPN tunnel. Required ifOutsideIpAddressTypeis set toPrivateIpv4.- Returns:
this
-
tunnelBandwidth
Sets the value ofCfnVPNConnectionProps.getTunnelBandwidth()- Parameters:
tunnelBandwidth- The desired bandwidth specification for the VPN tunnel, used when creating or modifying VPN connection options to set the tunnel's throughput capacity.standardsupports up to 1.25 Gbps per tunnel, whilelargesupports up to 5 Gbps per tunnel. The default value isstandard. Existing VPN connections without a bandwidth setting will automatically default tostandard.- Returns:
this
-
tunnelInsideIpVersion
@Stability(Stable) public CfnVPNConnectionProps.Builder tunnelInsideIpVersion(String tunnelInsideIpVersion) Sets the value ofCfnVPNConnectionProps.getTunnelInsideIpVersion()- Parameters:
tunnelInsideIpVersion- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. Default:ipv4- Returns:
this
-
vpnConcentratorId
Sets the value ofCfnVPNConnectionProps.getVpnConcentratorId()- Parameters:
vpnConcentratorId- The ID of the VPN concentrator to associate with the VPN connection.- 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
-
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
-