@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpnConnectionOptionsSpecification extends Object implements Serializable, Cloneable
Describes VPN connection options.
Constructor and Description |
---|
VpnConnectionOptionsSpecification() |
Modifier and Type | Method and Description |
---|---|
VpnConnectionOptionsSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnableAcceleration()
Indicate whether to enable acceleration for the VPN connection.
|
String |
getLocalIpv4NetworkCidr()
The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
|
String |
getLocalIpv6NetworkCidr()
The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
|
String |
getOutsideIpAddressType()
The type of IPv4 address assigned to the outside interface of the customer gateway device.
|
String |
getRemoteIpv4NetworkCidr()
The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
|
String |
getRemoteIpv6NetworkCidr()
The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
|
Boolean |
getStaticRoutesOnly()
Indicate whether the VPN connection uses static routes only.
|
String |
getTransportTransitGatewayAttachmentId()
The transit gateway attachment ID to use for the VPN tunnel.
|
String |
getTunnelInsideIpVersion()
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
|
List<VpnTunnelOptionsSpecification> |
getTunnelOptions()
The tunnel options for the VPN connection.
|
int |
hashCode() |
Boolean |
isEnableAcceleration()
Indicate whether to enable acceleration for the VPN connection.
|
Boolean |
isStaticRoutesOnly()
Indicate whether the VPN connection uses static routes only.
|
void |
setEnableAcceleration(Boolean enableAcceleration)
Indicate whether to enable acceleration for the VPN connection.
|
void |
setLocalIpv4NetworkCidr(String localIpv4NetworkCidr)
The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
|
void |
setLocalIpv6NetworkCidr(String localIpv6NetworkCidr)
The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
|
void |
setOutsideIpAddressType(String outsideIpAddressType)
The type of IPv4 address assigned to the outside interface of the customer gateway device.
|
void |
setRemoteIpv4NetworkCidr(String remoteIpv4NetworkCidr)
The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
|
void |
setRemoteIpv6NetworkCidr(String remoteIpv6NetworkCidr)
The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
|
void |
setStaticRoutesOnly(Boolean staticRoutesOnly)
Indicate whether the VPN connection uses static routes only.
|
void |
setTransportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId)
The transit gateway attachment ID to use for the VPN tunnel.
|
void |
setTunnelInsideIpVersion(String tunnelInsideIpVersion)
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
|
void |
setTunnelOptions(Collection<VpnTunnelOptionsSpecification> tunnelOptions)
The tunnel options for the VPN connection.
|
String |
toString()
Returns a string representation of this object.
|
VpnConnectionOptionsSpecification |
withEnableAcceleration(Boolean enableAcceleration)
Indicate whether to enable acceleration for the VPN connection.
|
VpnConnectionOptionsSpecification |
withLocalIpv4NetworkCidr(String localIpv4NetworkCidr)
The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
|
VpnConnectionOptionsSpecification |
withLocalIpv6NetworkCidr(String localIpv6NetworkCidr)
The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
|
VpnConnectionOptionsSpecification |
withOutsideIpAddressType(String outsideIpAddressType)
The type of IPv4 address assigned to the outside interface of the customer gateway device.
|
VpnConnectionOptionsSpecification |
withRemoteIpv4NetworkCidr(String remoteIpv4NetworkCidr)
The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
|
VpnConnectionOptionsSpecification |
withRemoteIpv6NetworkCidr(String remoteIpv6NetworkCidr)
The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
|
VpnConnectionOptionsSpecification |
withStaticRoutesOnly(Boolean staticRoutesOnly)
Indicate whether the VPN connection uses static routes only.
|
VpnConnectionOptionsSpecification |
withTransportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId)
The transit gateway attachment ID to use for the VPN tunnel.
|
VpnConnectionOptionsSpecification |
withTunnelInsideIpVersion(String tunnelInsideIpVersion)
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
|
VpnConnectionOptionsSpecification |
withTunnelInsideIpVersion(TunnelInsideIpVersion tunnelInsideIpVersion)
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
|
VpnConnectionOptionsSpecification |
withTunnelOptions(Collection<VpnTunnelOptionsSpecification> tunnelOptions)
The tunnel options for the VPN connection.
|
VpnConnectionOptionsSpecification |
withTunnelOptions(VpnTunnelOptionsSpecification... tunnelOptions)
The tunnel options for the VPN connection.
|
public void setEnableAcceleration(Boolean enableAcceleration)
Indicate whether to enable acceleration for the VPN connection.
Default: false
enableAcceleration
- Indicate whether to enable acceleration for the VPN connection.
Default: false
public Boolean getEnableAcceleration()
Indicate whether to enable acceleration for the VPN connection.
Default: false
Default: false
public VpnConnectionOptionsSpecification withEnableAcceleration(Boolean enableAcceleration)
Indicate whether to enable acceleration for the VPN connection.
Default: false
enableAcceleration
- Indicate whether to enable acceleration for the VPN connection.
Default: false
public Boolean isEnableAcceleration()
Indicate whether to enable acceleration for the VPN connection.
Default: false
Default: false
public void setStaticRoutesOnly(Boolean 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
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
public Boolean getStaticRoutesOnly()
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
true
. Use CreateVpnConnectionRoute
to create a static route.
Default: false
public VpnConnectionOptionsSpecification withStaticRoutesOnly(Boolean 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
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
public Boolean isStaticRoutesOnly()
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
true
. Use CreateVpnConnectionRoute
to create a static route.
Default: false
public void setTunnelInsideIpVersion(String tunnelInsideIpVersion)
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default: ipv4
tunnelInsideIpVersion
- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default: ipv4
TunnelInsideIpVersion
public String getTunnelInsideIpVersion()
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default: ipv4
Default: ipv4
TunnelInsideIpVersion
public VpnConnectionOptionsSpecification withTunnelInsideIpVersion(String tunnelInsideIpVersion)
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default: ipv4
tunnelInsideIpVersion
- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default: ipv4
TunnelInsideIpVersion
public VpnConnectionOptionsSpecification withTunnelInsideIpVersion(TunnelInsideIpVersion tunnelInsideIpVersion)
Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default: ipv4
tunnelInsideIpVersion
- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.
Default: ipv4
TunnelInsideIpVersion
public List<VpnTunnelOptionsSpecification> getTunnelOptions()
The tunnel options for the VPN connection.
public void setTunnelOptions(Collection<VpnTunnelOptionsSpecification> tunnelOptions)
The tunnel options for the VPN connection.
tunnelOptions
- The tunnel options for the VPN connection.public VpnConnectionOptionsSpecification withTunnelOptions(VpnTunnelOptionsSpecification... tunnelOptions)
The tunnel options for the VPN connection.
NOTE: This method appends the values to the existing list (if any). Use
setTunnelOptions(java.util.Collection)
or withTunnelOptions(java.util.Collection)
if you want
to override the existing values.
tunnelOptions
- The tunnel options for the VPN connection.public VpnConnectionOptionsSpecification withTunnelOptions(Collection<VpnTunnelOptionsSpecification> tunnelOptions)
The tunnel options for the VPN connection.
tunnelOptions
- The tunnel options for the VPN connection.public void setLocalIpv4NetworkCidr(String localIpv4NetworkCidr)
The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: 0.0.0.0/0
localIpv4NetworkCidr
- The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: 0.0.0.0/0
public String getLocalIpv4NetworkCidr()
The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: 0.0.0.0/0
Default: 0.0.0.0/0
public VpnConnectionOptionsSpecification withLocalIpv4NetworkCidr(String localIpv4NetworkCidr)
The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: 0.0.0.0/0
localIpv4NetworkCidr
- The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: 0.0.0.0/0
public void setRemoteIpv4NetworkCidr(String remoteIpv4NetworkCidr)
The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
Default: 0.0.0.0/0
remoteIpv4NetworkCidr
- The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
Default: 0.0.0.0/0
public String getRemoteIpv4NetworkCidr()
The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
Default: 0.0.0.0/0
Default: 0.0.0.0/0
public VpnConnectionOptionsSpecification withRemoteIpv4NetworkCidr(String remoteIpv4NetworkCidr)
The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
Default: 0.0.0.0/0
remoteIpv4NetworkCidr
- The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
Default: 0.0.0.0/0
public void setLocalIpv6NetworkCidr(String localIpv6NetworkCidr)
The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: ::/0
localIpv6NetworkCidr
- The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: ::/0
public String getLocalIpv6NetworkCidr()
The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: ::/0
Default: ::/0
public VpnConnectionOptionsSpecification withLocalIpv6NetworkCidr(String localIpv6NetworkCidr)
The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: ::/0
localIpv6NetworkCidr
- The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
Default: ::/0
public void setRemoteIpv6NetworkCidr(String remoteIpv6NetworkCidr)
The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
Default: ::/0
remoteIpv6NetworkCidr
- The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
Default: ::/0
public String getRemoteIpv6NetworkCidr()
The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
Default: ::/0
Default: ::/0
public VpnConnectionOptionsSpecification withRemoteIpv6NetworkCidr(String remoteIpv6NetworkCidr)
The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
Default: ::/0
remoteIpv6NetworkCidr
- The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
Default: ::/0
public void setOutsideIpAddressType(String outsideIpAddressType)
The type of IPv4 address assigned to the outside interface of the customer gateway device.
Valid values: PrivateIpv4
| PublicIpv4
Default: PublicIpv4
outsideIpAddressType
- The type of IPv4 address assigned to the outside interface of the customer gateway device.
Valid values: PrivateIpv4
| PublicIpv4
Default: PublicIpv4
public String getOutsideIpAddressType()
The type of IPv4 address assigned to the outside interface of the customer gateway device.
Valid values: PrivateIpv4
| PublicIpv4
Default: PublicIpv4
Valid values: PrivateIpv4
| PublicIpv4
Default: PublicIpv4
public VpnConnectionOptionsSpecification withOutsideIpAddressType(String outsideIpAddressType)
The type of IPv4 address assigned to the outside interface of the customer gateway device.
Valid values: PrivateIpv4
| PublicIpv4
Default: PublicIpv4
outsideIpAddressType
- The type of IPv4 address assigned to the outside interface of the customer gateway device.
Valid values: PrivateIpv4
| PublicIpv4
Default: PublicIpv4
public void setTransportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId)
The transit gateway attachment ID to use for the VPN tunnel.
Required if OutsideIpAddressType
is set to PrivateIpv4
.
transportTransitGatewayAttachmentId
- The transit gateway attachment ID to use for the VPN tunnel.
Required if OutsideIpAddressType
is set to PrivateIpv4
.
public String getTransportTransitGatewayAttachmentId()
The transit gateway attachment ID to use for the VPN tunnel.
Required if OutsideIpAddressType
is set to PrivateIpv4
.
Required if OutsideIpAddressType
is set to PrivateIpv4
.
public VpnConnectionOptionsSpecification withTransportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId)
The transit gateway attachment ID to use for the VPN tunnel.
Required if OutsideIpAddressType
is set to PrivateIpv4
.
transportTransitGatewayAttachmentId
- The transit gateway attachment ID to use for the VPN tunnel.
Required if OutsideIpAddressType
is set to PrivateIpv4
.
public String toString()
toString
in class Object
Object.toString()
public VpnConnectionOptionsSpecification clone()