public class VpnConnection
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a VPN connection.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
customerGatewayConfiguration
The configuration information for the VPN connection's customer gateway
(in the native XML format).
|
private java.lang.String |
customerGatewayId
The ID of the customer gateway at your end of the VPN connection.
|
private VpnConnectionOptions |
options
The VPN connection options.
|
private SdkInternalList<VpnStaticRoute> |
routes
The static routes associated with the VPN connection.
|
private java.lang.String |
state
The current state of the VPN connection.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the VPN connection.
|
private java.lang.String |
type
The type of VPN connection.
|
private SdkInternalList<VgwTelemetry> |
vgwTelemetry
Information about the VPN tunnel.
|
private java.lang.String |
vpnConnectionId
The ID of the VPN connection.
|
private java.lang.String |
vpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN
connection.
|
Constructor and Description |
---|
VpnConnection() |
Modifier and Type | Method and Description |
---|---|
VpnConnection |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCustomerGatewayConfiguration()
The configuration information for the VPN connection's customer gateway
(in the native XML format).
|
java.lang.String |
getCustomerGatewayId()
The ID of the customer gateway at your end of the VPN connection.
|
VpnConnectionOptions |
getOptions()
The VPN connection options.
|
java.util.List<VpnStaticRoute> |
getRoutes()
The static routes associated with the VPN connection.
|
java.lang.String |
getState()
The current state of the VPN connection.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the VPN connection.
|
java.lang.String |
getType()
The type of VPN connection.
|
java.util.List<VgwTelemetry> |
getVgwTelemetry()
Information about the VPN tunnel.
|
java.lang.String |
getVpnConnectionId()
The ID of the VPN connection.
|
java.lang.String |
getVpnGatewayId()
The ID of the virtual private gateway at the AWS side of the VPN
connection.
|
int |
hashCode() |
void |
setCustomerGatewayConfiguration(java.lang.String customerGatewayConfiguration)
The configuration information for the VPN connection's customer gateway
(in the native XML format).
|
void |
setCustomerGatewayId(java.lang.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(java.util.Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
|
void |
setState(java.lang.String state)
The current state of the VPN connection.
|
void |
setState(VpnState state)
The current state of the VPN connection.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the VPN connection.
|
void |
setType(GatewayType type)
The type of VPN connection.
|
void |
setType(java.lang.String type)
The type of VPN connection.
|
void |
setVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
|
void |
setVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.
|
void |
setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN
connection.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VpnConnection |
withCustomerGatewayConfiguration(java.lang.String customerGatewayConfiguration)
The configuration information for the VPN connection's customer gateway
(in the native XML format).
|
VpnConnection |
withCustomerGatewayId(java.lang.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(java.util.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(java.lang.String state)
The current state of the VPN connection.
|
VpnConnection |
withState(VpnState state)
The current state of the VPN connection.
|
VpnConnection |
withTags(java.util.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(java.lang.String type)
The type of VPN connection.
|
VpnConnection |
withVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection |
withVgwTelemetry(VgwTelemetry... vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection |
withVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.
|
VpnConnection |
withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN
connection.
|
private java.lang.String vpnConnectionId
The ID of the VPN connection.
private java.lang.String state
The current state of the VPN connection.
private java.lang.String 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.
private java.lang.String type
The type of VPN connection.
private java.lang.String customerGatewayId
The ID of the customer gateway at your end of the VPN connection.
private java.lang.String vpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN connection.
private SdkInternalList<Tag> tags
Any tags assigned to the VPN connection.
private SdkInternalList<VgwTelemetry> vgwTelemetry
Information about the VPN tunnel.
private VpnConnectionOptions options
The VPN connection options.
private SdkInternalList<VpnStaticRoute> routes
The static routes associated with the VPN connection.
public void setVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.
vpnConnectionId
- The ID of the VPN connection.public java.lang.String getVpnConnectionId()
The ID of the VPN connection.
public VpnConnection withVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.
vpnConnectionId
- The ID of the VPN connection.public void setState(java.lang.String state)
The current state of the VPN connection.
state
- The current state of the VPN connection.VpnState
public java.lang.String getState()
The current state of the VPN connection.
VpnState
public VpnConnection withState(java.lang.String state)
The current state of the VPN connection.
state
- The current state of the VPN connection.VpnState
public void setState(VpnState state)
The current state of the VPN connection.
state
- The current state of the VPN connection.VpnState
public VpnConnection withState(VpnState state)
The current state of the VPN connection.
state
- The current state of the VPN connection.VpnState
public void setCustomerGatewayConfiguration(java.lang.String 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.
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 java.lang.String 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
or available
state.
pending
or
available
state.public VpnConnection withCustomerGatewayConfiguration(java.lang.String 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.
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 void setType(java.lang.String type)
The type of VPN connection.
type
- The type of VPN connection.GatewayType
public java.lang.String getType()
The type of VPN connection.
GatewayType
public VpnConnection withType(java.lang.String type)
The type of VPN connection.
type
- The type of VPN connection.GatewayType
public void setType(GatewayType type)
The type of VPN connection.
type
- The type of VPN connection.GatewayType
public VpnConnection withType(GatewayType type)
The type of VPN connection.
type
- The type of VPN connection.GatewayType
public void setCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway at your end of the VPN connection.
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.public java.lang.String getCustomerGatewayId()
The ID of the customer gateway at your end of the VPN connection.
public VpnConnection withCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway at your end of the VPN connection.
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.public void setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN connection.
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN
connection.public java.lang.String getVpnGatewayId()
The ID of the virtual private gateway at the AWS side of the VPN connection.
public VpnConnection withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN connection.
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN
connection.public java.util.List<Tag> getTags()
Any tags assigned to the VPN connection.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the VPN connection.
tags
- Any tags assigned to the VPN connection.public VpnConnection withTags(Tag... tags)
Any tags assigned to the VPN connection.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the VPN connection.public VpnConnection withTags(java.util.Collection<Tag> tags)
Any tags assigned to the VPN connection.
tags
- Any tags assigned to the VPN connection.public java.util.List<VgwTelemetry> getVgwTelemetry()
Information about the VPN tunnel.
public void setVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
vgwTelemetry
- Information about the VPN tunnel.public VpnConnection withVgwTelemetry(VgwTelemetry... vgwTelemetry)
Information about the VPN tunnel.
NOTE: This method appends the values to the existing list (if
any). Use setVgwTelemetry(java.util.Collection)
or
withVgwTelemetry(java.util.Collection)
if you want to override
the existing values.
vgwTelemetry
- Information about the VPN tunnel.public VpnConnection withVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
vgwTelemetry
- Information about the VPN tunnel.public void setOptions(VpnConnectionOptions options)
The VPN connection options.
options
- The VPN connection options.public VpnConnectionOptions getOptions()
The VPN connection options.
public VpnConnection withOptions(VpnConnectionOptions options)
The VPN connection options.
options
- The VPN connection options.public java.util.List<VpnStaticRoute> getRoutes()
The static routes associated with the VPN connection.
public void setRoutes(java.util.Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
routes
- The static routes associated with the VPN connection.public VpnConnection withRoutes(VpnStaticRoute... routes)
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)
or
withRoutes(java.util.Collection)
if you want to override the
existing values.
routes
- The static routes associated with the VPN connection.public VpnConnection withRoutes(java.util.Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
routes
- The static routes associated with the VPN connection.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VpnConnection clone()
clone
in class java.lang.Object