public class VpnConnection extends Object implements Serializable
Describes a VPN connection.
Constructor and Description |
---|
VpnConnection() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCustomerGatewayConfiguration()
The configuration information for the VPN connection's customer
gateway (in the native XML format).
|
String |
getCustomerGatewayId()
The ID of the customer gateway at your end of the VPN connection.
|
VpnConnectionOptions |
getOptions()
The VPN connection options.
|
List<VpnStaticRoute> |
getRoutes()
The static routes associated with the VPN connection.
|
String |
getState()
The current state of the VPN connection.
|
List<Tag> |
getTags()
Any tags assigned to the VPN connection.
|
String |
getType()
The type of VPN connection.
|
List<VgwTelemetry> |
getVgwTelemetry()
Information about the VPN tunnel.
|
String |
getVpnConnectionId()
The ID of the VPN connection.
|
String |
getVpnGatewayId()
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 |
setState(String state)
The current state of the VPN connection.
|
void |
setState(VpnState state)
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 |
setType(String type)
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VpnConnection |
withCustomerGatewayConfiguration(String customerGatewayConfiguration)
The configuration information for the VPN connection's customer
gateway (in the native XML format).
|
VpnConnection |
withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway at your end of the VPN connection.
|
VpnConnection |
withOptions(VpnConnectionOptions options)
The VPN connection options.
|
VpnConnection |
withRoutes(Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
|
VpnConnection |
withRoutes(VpnStaticRoute... routes)
The static routes associated with the VPN connection.
|
VpnConnection |
withState(String state)
The current state of the VPN connection.
|
VpnConnection |
withState(VpnState state)
The current state of the VPN connection.
|
VpnConnection |
withTags(Collection<Tag> tags)
Any tags assigned to the VPN connection.
|
VpnConnection |
withTags(Tag... tags)
Any tags assigned to the VPN connection.
|
VpnConnection |
withType(GatewayType type)
The type of VPN connection.
|
VpnConnection |
withType(String type)
The type of VPN connection.
|
VpnConnection |
withVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection |
withVgwTelemetry(VgwTelemetry... vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection |
withVpnConnectionId(String vpnConnectionId)
The ID of the VPN connection.
|
VpnConnection |
withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN
connection.
|
public String getVpnConnectionId()
public void setVpnConnectionId(String vpnConnectionId)
vpnConnectionId
- The ID of the VPN connection.public VpnConnection withVpnConnectionId(String vpnConnectionId)
Returns a reference to this object so that method calls can be chained together.
vpnConnectionId
- The ID of the VPN connection.public String getState()
Constraints:
Allowed Values: pending, available, deleting, deleted
VpnState
public void setState(String state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- The current state of the VPN connection.VpnState
public VpnConnection withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- The current state of the VPN connection.VpnState
public void setState(VpnState state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- The current state of the VPN connection.VpnState
public VpnConnection withState(VpnState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- The current state of the VPN connection.VpnState
public String getCustomerGatewayConfiguration()
pending
or available
state.pending
or available
state.public void setCustomerGatewayConfiguration(String customerGatewayConfiguration)
pending
or available
state.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 the pending
or available
state.public VpnConnection withCustomerGatewayConfiguration(String customerGatewayConfiguration)
pending
or available
state.
Returns a reference to this object so that method calls can be chained together.
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 the pending
or available
state.public String getType()
Constraints:
Allowed Values: ipsec.1
GatewayType
public void setType(String type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection.GatewayType
public VpnConnection withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection.GatewayType
public void setType(GatewayType type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection.GatewayType
public VpnConnection withType(GatewayType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection.GatewayType
public String getCustomerGatewayId()
public void setCustomerGatewayId(String customerGatewayId)
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.public VpnConnection withCustomerGatewayId(String customerGatewayId)
Returns a reference to this object so that method calls can be chained together.
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.public String getVpnGatewayId()
public void setVpnGatewayId(String vpnGatewayId)
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN
connection.public VpnConnection withVpnGatewayId(String vpnGatewayId)
Returns a reference to this object so that method calls can be chained together.
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN
connection.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- Any tags assigned to the VPN connection.public VpnConnection withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the VPN connection.public VpnConnection withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the VPN connection.public List<VgwTelemetry> getVgwTelemetry()
public void setVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
vgwTelemetry
- Information about the VPN tunnel.public VpnConnection withVgwTelemetry(VgwTelemetry... vgwTelemetry)
Returns a reference to this object so that method calls can be chained together.
vgwTelemetry
- Information about the VPN tunnel.public VpnConnection withVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Returns a reference to this object so that method calls can be chained together.
vgwTelemetry
- Information about the VPN tunnel.public VpnConnectionOptions getOptions()
public void setOptions(VpnConnectionOptions options)
options
- The VPN connection options.public VpnConnection withOptions(VpnConnectionOptions options)
Returns a reference to this object so that method calls can be chained together.
options
- The VPN connection options.public List<VpnStaticRoute> getRoutes()
public void setRoutes(Collection<VpnStaticRoute> routes)
routes
- The static routes associated with the VPN connection.public VpnConnection withRoutes(VpnStaticRoute... routes)
Returns a reference to this object so that method calls can be chained together.
routes
- The static routes associated with the VPN connection.public VpnConnection withRoutes(Collection<VpnStaticRoute> routes)
Returns a reference to this object so that method calls can be chained together.
routes
- The static routes associated with the VPN connection.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.