public class VpnConnection
extends java.lang.Object
implements java.io.Serializable
Describes a VPN connection.
Constructor and Description |
---|
VpnConnection() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getVpnConnectionId()
public void setVpnConnectionId(java.lang.String vpnConnectionId)
vpnConnectionId
- The ID of the VPN connection.public VpnConnection withVpnConnectionId(java.lang.String vpnConnectionId)
Returns a reference to this object so that method calls can be chained together.
vpnConnectionId
- The ID of the VPN connection.public java.lang.String getState()
Constraints:
Allowed Values: pending, available, deleting, deleted
VpnState
public void setState(java.lang.String state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- The current state of the VPN connection.VpnState
public VpnConnection withState(java.lang.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 java.lang.String getCustomerGatewayConfiguration()
pending
or available
state.pending
or available
state.public void setCustomerGatewayConfiguration(java.lang.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(java.lang.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 java.lang.String getType()
Constraints:
Allowed Values: ipsec.1
GatewayType
public void setType(java.lang.String type)
Constraints:
Allowed Values: ipsec.1
type
- The type of VPN connection.GatewayType
public VpnConnection withType(java.lang.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 java.lang.String getCustomerGatewayId()
public void setCustomerGatewayId(java.lang.String customerGatewayId)
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.public VpnConnection withCustomerGatewayId(java.lang.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 java.lang.String getVpnGatewayId()
public void setVpnGatewayId(java.lang.String vpnGatewayId)
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN
connection.public VpnConnection withVpnGatewayId(java.lang.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 java.util.List<Tag> getTags()
public void setTags(java.util.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(java.util.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 java.util.List<VgwTelemetry> getVgwTelemetry()
public void setVgwTelemetry(java.util.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(java.util.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 java.util.List<VpnStaticRoute> getRoutes()
public void setRoutes(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.