Class VpnConnection
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a VPN connection.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The configuration information for the VPN connection's customer gateway (in the native XML format).The ID of the customer gateway at your end of the VPN connection.The VPN connection options.The static routes associated with the VPN connection.getState()
The current state of the VPN connection.getTags()
Any tags assigned to the VPN connection.getType()
The type of VPN connection.Information about the VPN tunnel.The ID of the VPN connection.The ID of the virtual private gateway at the AWS side of the VPN connection.int
hashCode()
void
setCustomerGatewayConfiguration
(String customerGatewayConfiguration) The configuration information for the VPN connection's customer gateway (in the native XML format).void
setCustomerGatewayId
(String customerGatewayId) The ID of the customer gateway at your end of the VPN connection.void
setOptions
(VpnConnectionOptions options) The VPN connection options.void
setRoutes
(Collection<VpnStaticRoute> routes) The static routes associated with the VPN connection.void
The current state of the VPN connection.void
The current state of the VPN connection.void
setTags
(Collection<Tag> tags) Any tags assigned to the VPN connection.void
setType
(GatewayType type) The type of VPN connection.void
The type of VPN connection.void
setVgwTelemetry
(Collection<VgwTelemetry> vgwTelemetry) Information about the VPN tunnel.void
setVpnConnectionId
(String vpnConnectionId) The ID of the VPN connection.void
setVpnGatewayId
(String vpnGatewayId) The ID of the virtual private gateway at the AWS side of the VPN connection.toString()
Returns a string representation of this object; useful for testing and debugging.withCustomerGatewayConfiguration
(String customerGatewayConfiguration) The configuration information for the VPN connection's customer gateway (in the native XML format).withCustomerGatewayId
(String customerGatewayId) The ID of the customer gateway at your end of the VPN connection.withOptions
(VpnConnectionOptions options) The VPN connection options.withRoutes
(VpnStaticRoute... routes) The static routes associated with the VPN connection.withRoutes
(Collection<VpnStaticRoute> routes) The static routes associated with the VPN connection.The current state of the VPN connection.The current state of the VPN connection.Any tags assigned to the VPN connection.withTags
(Collection<Tag> tags) Any tags assigned to the VPN connection.withType
(GatewayType type) The type of VPN connection.The type of VPN connection.withVgwTelemetry
(VgwTelemetry... vgwTelemetry) Information about the VPN tunnel.withVgwTelemetry
(Collection<VgwTelemetry> vgwTelemetry) Information about the VPN tunnel.withVpnConnectionId
(String vpnConnectionId) The ID of the VPN connection.withVpnGatewayId
(String vpnGatewayId) The ID of the virtual private gateway at the AWS side of the VPN connection.
-
Constructor Details
-
VpnConnection
public VpnConnection()
-
-
Method Details
-
setVpnConnectionId
The ID of the VPN connection.
- Parameters:
vpnConnectionId
- The ID of the VPN connection.
-
getVpnConnectionId
The ID of the VPN connection.
- Returns:
- The ID of the VPN connection.
-
withVpnConnectionId
The ID of the VPN connection.
- Parameters:
vpnConnectionId
- The ID of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
The current state of the VPN connection.
- Parameters:
state
- The current state of the VPN connection.- See Also:
-
getState
The current state of the VPN connection.
- Returns:
- The current state of the VPN connection.
- See Also:
-
withState
The current state of the VPN connection.
- Parameters:
state
- The current state of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The current state of the VPN connection.
- Parameters:
state
- The current state of the VPN connection.- See Also:
-
withState
The current state of the VPN connection.
- Parameters:
state
- The current state of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setCustomerGatewayConfiguration
The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the
pending
oravailable
state.- Parameters:
customerGatewayConfiguration
- The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in thepending
oravailable
state.
-
getCustomerGatewayConfiguration
The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the
pending
oravailable
state.- Returns:
- The configuration information for the VPN connection's customer
gateway (in the native XML format). This element is always
present in the CreateVpnConnection response; however, it's
present in the DescribeVpnConnections response only if the
VPN connection is in the
pending
oravailable
state.
-
withCustomerGatewayConfiguration
The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the
pending
oravailable
state.- Parameters:
customerGatewayConfiguration
- The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in thepending
oravailable
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
The type of VPN connection.
- Parameters:
type
- The type of VPN connection.- See Also:
-
getType
The type of VPN connection.
- Returns:
- The type of VPN connection.
- See Also:
-
withType
The type of VPN connection.
- Parameters:
type
- The type of VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setType
The type of VPN connection.
- Parameters:
type
- The type of VPN connection.- See Also:
-
withType
The type of VPN connection.
- Parameters:
type
- The type of VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setCustomerGatewayId
The ID of the customer gateway at your end of the VPN connection.
- Parameters:
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.
-
getCustomerGatewayId
The ID of the customer gateway at your end of the VPN connection.
- Returns:
- The ID of the customer gateway at your end of the VPN connection.
-
withCustomerGatewayId
The ID of the customer gateway at your end of the VPN connection.
- Parameters:
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN connection.
- Parameters:
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN connection.
-
getVpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN connection.
- Returns:
- The ID of the virtual private gateway at the AWS side of the VPN connection.
-
withVpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN connection.
- Parameters:
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
Any tags assigned to the VPN connection.
- Returns:
- Any tags assigned to the VPN connection.
-
setTags
Any tags assigned to the VPN connection.
- Parameters:
tags
- Any tags assigned to the VPN connection.
-
withTags
Any tags assigned to the VPN connection.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- Any tags assigned to the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
Any tags assigned to the VPN connection.
- Parameters:
tags
- Any tags assigned to the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getVgwTelemetry
Information about the VPN tunnel.
- Returns:
- Information about the VPN tunnel.
-
setVgwTelemetry
Information about the VPN tunnel.
- Parameters:
vgwTelemetry
- Information about the VPN tunnel.
-
withVgwTelemetry
Information about the VPN tunnel.
NOTE: This method appends the values to the existing list (if any). Use
setVgwTelemetry(java.util.Collection)
orwithVgwTelemetry(java.util.Collection)
if you want to override the existing values.- Parameters:
vgwTelemetry
- Information about the VPN tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withVgwTelemetry
Information about the VPN tunnel.
- Parameters:
vgwTelemetry
- Information about the VPN tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOptions
The VPN connection options.
- Parameters:
options
- The VPN connection options.
-
getOptions
The VPN connection options.
- Returns:
- The VPN connection options.
-
withOptions
The VPN connection options.
- Parameters:
options
- The VPN connection options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRoutes
The static routes associated with the VPN connection.
- Returns:
- The static routes associated with the VPN connection.
-
setRoutes
The static routes associated with the VPN connection.
- Parameters:
routes
- The static routes associated with the VPN connection.
-
withRoutes
The static routes associated with the VPN connection.
NOTE: This method appends the values to the existing list (if any). Use
setRoutes(java.util.Collection)
orwithRoutes(java.util.Collection)
if you want to override the existing values.- Parameters:
routes
- The static routes associated with the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRoutes
The static routes associated with the VPN connection.
- Parameters:
routes
- The static routes associated with the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-