Interface VpnConnectionOptionsSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<VpnConnectionOptionsSpecification.Builder,
,VpnConnectionOptionsSpecification> SdkBuilder<VpnConnectionOptionsSpecification.Builder,
,VpnConnectionOptionsSpecification> SdkPojo
- Enclosing class:
VpnConnectionOptionsSpecification
-
Method Summary
Modifier and TypeMethodDescriptionenableAcceleration
(Boolean enableAcceleration) Indicate whether to enable acceleration for the VPN connection.localIpv4NetworkCidr
(String localIpv4NetworkCidr) The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.localIpv6NetworkCidr
(String localIpv6NetworkCidr) The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.outsideIpAddressType
(String outsideIpAddressType) The type of IPv4 address assigned to the outside interface of the customer gateway device.remoteIpv4NetworkCidr
(String remoteIpv4NetworkCidr) The IPv4 CIDR on the Amazon Web Services side of the VPN connection.remoteIpv6NetworkCidr
(String remoteIpv6NetworkCidr) The IPv6 CIDR on the Amazon Web Services side of the VPN connection.staticRoutesOnly
(Boolean staticRoutesOnly) Indicate whether the VPN connection uses static routes only.transportTransitGatewayAttachmentId
(String transportTransitGatewayAttachmentId) The transit gateway attachment ID to use for the VPN tunnel.tunnelInsideIpVersion
(String tunnelInsideIpVersion) Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.tunnelInsideIpVersion
(TunnelInsideIpVersion tunnelInsideIpVersion) Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.tunnelOptions
(Collection<VpnTunnelOptionsSpecification> tunnelOptions) The tunnel options for the VPN connection.tunnelOptions
(Consumer<VpnTunnelOptionsSpecification.Builder>... tunnelOptions) The tunnel options for the VPN connection.tunnelOptions
(VpnTunnelOptionsSpecification... tunnelOptions) The tunnel options for the VPN connection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
enableAcceleration
Indicate whether to enable acceleration for the VPN connection.
Default:
false
- Parameters:
enableAcceleration
- Indicate whether to enable acceleration for the VPN connection.Default:
false
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tunnelInsideIpVersion
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default:
ipv4
- Parameters:
tunnelInsideIpVersion
- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.Default:
ipv4
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tunnelInsideIpVersion
VpnConnectionOptionsSpecification.Builder tunnelInsideIpVersion(TunnelInsideIpVersion tunnelInsideIpVersion) Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default:
ipv4
- Parameters:
tunnelInsideIpVersion
- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.Default:
ipv4
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tunnelOptions
VpnConnectionOptionsSpecification.Builder tunnelOptions(Collection<VpnTunnelOptionsSpecification> tunnelOptions) The tunnel options for the VPN connection.
- Parameters:
tunnelOptions
- The tunnel options for the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tunnelOptions
VpnConnectionOptionsSpecification.Builder tunnelOptions(VpnTunnelOptionsSpecification... tunnelOptions) The tunnel options for the VPN connection.
- Parameters:
tunnelOptions
- The tunnel options for the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tunnelOptions
VpnConnectionOptionsSpecification.Builder tunnelOptions(Consumer<VpnTunnelOptionsSpecification.Builder>... tunnelOptions) The tunnel options for the VPN connection.
This is a convenience method that creates an instance of theVpnTunnelOptionsSpecification.Builder
avoiding the need to create one manually viaVpnTunnelOptionsSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totunnelOptions(List<VpnTunnelOptionsSpecification>)
.- Parameters:
tunnelOptions
- a consumer that will call methods onVpnTunnelOptionsSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
localIpv4NetworkCidr
The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default:
0.0.0.0/0
- Parameters:
localIpv4NetworkCidr
- The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.Default:
0.0.0.0/0
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remoteIpv4NetworkCidr
The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
Default:
0.0.0.0/0
- Parameters:
remoteIpv4NetworkCidr
- The IPv4 CIDR on the Amazon Web Services side of the VPN connection.Default:
0.0.0.0/0
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localIpv6NetworkCidr
The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default:
::/0
- Parameters:
localIpv6NetworkCidr
- The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.Default:
::/0
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remoteIpv6NetworkCidr
The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
Default:
::/0
- Parameters:
remoteIpv6NetworkCidr
- The IPv6 CIDR on the Amazon Web Services side of the VPN connection.Default:
::/0
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outsideIpAddressType
The type of IPv4 address assigned to the outside interface of the customer gateway device.
Valid values:
PrivateIpv4
|PublicIpv4
Default:
PublicIpv4
- Parameters:
outsideIpAddressType
- The type of IPv4 address assigned to the outside interface of the customer gateway device.Valid values:
PrivateIpv4
|PublicIpv4
Default:
PublicIpv4
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transportTransitGatewayAttachmentId
VpnConnectionOptionsSpecification.Builder transportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId) The transit gateway attachment ID to use for the VPN tunnel.
Required if
OutsideIpAddressType
is set toPrivateIpv4
.- Parameters:
transportTransitGatewayAttachmentId
- The transit gateway attachment ID to use for the VPN tunnel.Required if
OutsideIpAddressType
is set toPrivateIpv4
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
staticRoutesOnly
Indicate whether the VPN connection uses static routes only. If you are creating a VPN connection for a device that does not support BGP, you must specify
true
. Use CreateVpnConnectionRoute to create a static route.Default:
false
- Parameters:
staticRoutesOnly
- Indicate whether the VPN connection uses static routes only. If you are creating a VPN connection for a device that does not support BGP, you must specifytrue
. Use CreateVpnConnectionRoute to create a static route.Default:
false
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-