Class CfnVPNConnectionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPNConnectionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNConnectionMixinProps>
- Enclosing interface:
CfnVPNConnectionMixinProps
@Stability(Stable)
public static final class CfnVPNConnectionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPNConnectionMixinProps>
A builder for
CfnVPNConnectionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customerGatewayId(String customerGatewayId) Sets the value ofCfnVPNConnectionMixinProps.getCustomerGatewayId()customerGatewayId(ICustomerGatewayRef customerGatewayId) Sets the value ofCfnVPNConnectionMixinProps.getCustomerGatewayId()enableAcceleration(Boolean enableAcceleration) Sets the value ofCfnVPNConnectionMixinProps.getEnableAcceleration()enableAcceleration(IResolvable enableAcceleration) Sets the value ofCfnVPNConnectionMixinProps.getEnableAcceleration()localIpv4NetworkCidr(String localIpv4NetworkCidr) Sets the value ofCfnVPNConnectionMixinProps.getLocalIpv4NetworkCidr()localIpv6NetworkCidr(String localIpv6NetworkCidr) Sets the value ofCfnVPNConnectionMixinProps.getLocalIpv6NetworkCidr()outsideIpAddressType(String outsideIpAddressType) Sets the value ofCfnVPNConnectionMixinProps.getOutsideIpAddressType()preSharedKeyStorage(String preSharedKeyStorage) Sets the value ofCfnVPNConnectionMixinProps.getPreSharedKeyStorage()remoteIpv4NetworkCidr(String remoteIpv4NetworkCidr) Sets the value ofCfnVPNConnectionMixinProps.getRemoteIpv4NetworkCidr()remoteIpv6NetworkCidr(String remoteIpv6NetworkCidr) Sets the value ofCfnVPNConnectionMixinProps.getRemoteIpv6NetworkCidr()staticRoutesOnly(Boolean staticRoutesOnly) Sets the value ofCfnVPNConnectionMixinProps.getStaticRoutesOnly()staticRoutesOnly(IResolvable staticRoutesOnly) Sets the value ofCfnVPNConnectionMixinProps.getStaticRoutesOnly()Sets the value ofCfnVPNConnectionMixinProps.getTags()transitGatewayId(String transitGatewayId) Sets the value ofCfnVPNConnectionMixinProps.getTransitGatewayId()transitGatewayId(ITransitGatewayRef transitGatewayId) Sets the value ofCfnVPNConnectionMixinProps.getTransitGatewayId()transportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId) Sets the value ofCfnVPNConnectionMixinProps.getTransportTransitGatewayAttachmentId()tunnelBandwidth(String tunnelBandwidth) Sets the value ofCfnVPNConnectionMixinProps.getTunnelBandwidth()tunnelInsideIpVersion(String tunnelInsideIpVersion) Sets the value ofCfnVPNConnectionMixinProps.getTunnelInsideIpVersion()Sets the value ofCfnVPNConnectionMixinProps.getType()vpnConcentratorId(String vpnConcentratorId) Sets the value ofCfnVPNConnectionMixinProps.getVpnConcentratorId()vpnGatewayId(String vpnGatewayId) Sets the value ofCfnVPNConnectionMixinProps.getVpnGatewayId()vpnGatewayId(IVPNGatewayRef vpnGatewayId) Sets the value ofCfnVPNConnectionMixinProps.getVpnGatewayId()vpnTunnelOptionsSpecifications(List<? extends Object> vpnTunnelOptionsSpecifications) Sets the value ofCfnVPNConnectionMixinProps.getVpnTunnelOptionsSpecifications()vpnTunnelOptionsSpecifications(IResolvable vpnTunnelOptionsSpecifications) Sets the value ofCfnVPNConnectionMixinProps.getVpnTunnelOptionsSpecifications()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customerGatewayId
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder customerGatewayId(String customerGatewayId) Sets the value ofCfnVPNConnectionMixinProps.getCustomerGatewayId()- Parameters:
customerGatewayId- The ID of the customer gateway at your end of the VPN connection.- Returns:
this
-
customerGatewayId
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder customerGatewayId(ICustomerGatewayRef customerGatewayId) Sets the value ofCfnVPNConnectionMixinProps.getCustomerGatewayId()- Parameters:
customerGatewayId- The ID of the customer gateway at your end of the VPN connection.- Returns:
this
-
enableAcceleration
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder enableAcceleration(Boolean enableAcceleration) Sets the value ofCfnVPNConnectionMixinProps.getEnableAcceleration()- Parameters:
enableAcceleration- Indicate whether to enable acceleration for the VPN connection. Default:false- Returns:
this
-
enableAcceleration
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder enableAcceleration(IResolvable enableAcceleration) Sets the value ofCfnVPNConnectionMixinProps.getEnableAcceleration()- Parameters:
enableAcceleration- Indicate whether to enable acceleration for the VPN connection. Default:false- Returns:
this
-
localIpv4NetworkCidr
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder localIpv4NetworkCidr(String localIpv4NetworkCidr) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder localIpv6NetworkCidr(String localIpv6NetworkCidr) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder outsideIpAddressType(String outsideIpAddressType) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder remoteIpv4NetworkCidr(String remoteIpv4NetworkCidr) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder remoteIpv6NetworkCidr(String remoteIpv6NetworkCidr) Sets the value ofCfnVPNConnectionMixinProps.getRemoteIpv6NetworkCidr()- Parameters:
remoteIpv6NetworkCidr- The IPv6 CIDR on the AWS side of the VPN connection. Default:::/0- Returns:
this
-
staticRoutesOnly
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder staticRoutesOnly(Boolean staticRoutesOnly) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder staticRoutesOnly(IResolvable staticRoutesOnly) Sets the value ofCfnVPNConnectionMixinProps.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 ofCfnVPNConnectionMixinProps.getTags()- Parameters:
tags- Any tags assigned to the VPN connection.- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder transitGatewayId(String transitGatewayId) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder transitGatewayId(ITransitGatewayRef transitGatewayId) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder transportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId) Sets the value ofCfnVPNConnectionMixinProps.getTransportTransitGatewayAttachmentId()- Parameters:
transportTransitGatewayAttachmentId- The transit gateway attachment ID to use for the VPN tunnel. Required ifOutsideIpAddressTypeis set toPrivateIpv4.- Returns:
this
-
tunnelBandwidth
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder tunnelBandwidth(String tunnelBandwidth) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder tunnelInsideIpVersion(String tunnelInsideIpVersion) Sets the value ofCfnVPNConnectionMixinProps.getTunnelInsideIpVersion()- Parameters:
tunnelInsideIpVersion- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. Default:ipv4- Returns:
this
-
type
Sets the value ofCfnVPNConnectionMixinProps.getType()- Parameters:
type- The type of VPN connection.- Returns:
this
-
vpnConcentratorId
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder vpnConcentratorId(String vpnConcentratorId) Sets the value ofCfnVPNConnectionMixinProps.getVpnConcentratorId()- Parameters:
vpnConcentratorId- The ID of the VPN concentrator to associate with the VPN connection.- Returns:
this
-
vpnGatewayId
Sets the value ofCfnVPNConnectionMixinProps.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
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder vpnGatewayId(IVPNGatewayRef vpnGatewayId) Sets the value ofCfnVPNConnectionMixinProps.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 CfnVPNConnectionMixinProps.Builder vpnTunnelOptionsSpecifications(IResolvable vpnTunnelOptionsSpecifications) Sets the value ofCfnVPNConnectionMixinProps.getVpnTunnelOptionsSpecifications()- Parameters:
vpnTunnelOptionsSpecifications- The tunnel options for the VPN connection.- Returns:
this
-
vpnTunnelOptionsSpecifications
@Stability(Stable) public CfnVPNConnectionMixinProps.Builder vpnTunnelOptionsSpecifications(List<? extends Object> vpnTunnelOptionsSpecifications) Sets the value ofCfnVPNConnectionMixinProps.getVpnTunnelOptionsSpecifications()- Parameters:
vpnTunnelOptionsSpecifications- The tunnel options for the VPN connection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPNConnectionMixinProps>- Returns:
- a new instance of
CfnVPNConnectionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-