Class VpnConnection
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VpnConnection
-
- All Implemented Interfaces:
Serializable,Cloneable
public class VpnConnection extends Object implements Serializable, Cloneable
Describes a VPN connection.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VpnConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpnConnectionclone()booleanequals(Object obj)StringgetCustomerGatewayConfiguration()The configuration information for the VPN connection's customer gateway (in the native XML format).StringgetCustomerGatewayId()The ID of the customer gateway at your end of the VPN connection.VpnConnectionOptionsgetOptions()The VPN connection options.List<VpnStaticRoute>getRoutes()The static routes associated with the VPN connection.StringgetState()The current state of the VPN connection.List<Tag>getTags()Any tags assigned to the VPN connection.StringgetType()The type of VPN connection.List<VgwTelemetry>getVgwTelemetry()Information about the VPN tunnel.StringgetVpnConnectionId()The ID of the VPN connection.StringgetVpnGatewayId()The ID of the virtual private gateway at the AWS side of the VPN connection.inthashCode()voidsetCustomerGatewayConfiguration(String customerGatewayConfiguration)The configuration information for the VPN connection's customer gateway (in the native XML format).voidsetCustomerGatewayId(String customerGatewayId)The ID of the customer gateway at your end of the VPN connection.voidsetOptions(VpnConnectionOptions options)The VPN connection options.voidsetRoutes(Collection<VpnStaticRoute> routes)The static routes associated with the VPN connection.voidsetState(VpnState state)The current state of the VPN connection.voidsetState(String state)The current state of the VPN connection.voidsetTags(Collection<Tag> tags)Any tags assigned to the VPN connection.voidsetType(GatewayType type)The type of VPN connection.voidsetType(String type)The type of VPN connection.voidsetVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)Information about the VPN tunnel.voidsetVpnConnectionId(String vpnConnectionId)The ID of the VPN connection.voidsetVpnGatewayId(String vpnGatewayId)The ID of the virtual private gateway at the AWS side of the VPN connection.StringtoString()Returns a string representation of this object; useful for testing and debugging.VpnConnectionwithCustomerGatewayConfiguration(String customerGatewayConfiguration)The configuration information for the VPN connection's customer gateway (in the native XML format).VpnConnectionwithCustomerGatewayId(String customerGatewayId)The ID of the customer gateway at your end of the VPN connection.VpnConnectionwithOptions(VpnConnectionOptions options)The VPN connection options.VpnConnectionwithRoutes(VpnStaticRoute... routes)The static routes associated with the VPN connection.VpnConnectionwithRoutes(Collection<VpnStaticRoute> routes)The static routes associated with the VPN connection.VpnConnectionwithState(VpnState state)The current state of the VPN connection.VpnConnectionwithState(String state)The current state of the VPN connection.VpnConnectionwithTags(Tag... tags)Any tags assigned to the VPN connection.VpnConnectionwithTags(Collection<Tag> tags)Any tags assigned to the VPN connection.VpnConnectionwithType(GatewayType type)The type of VPN connection.VpnConnectionwithType(String type)The type of VPN connection.VpnConnectionwithVgwTelemetry(VgwTelemetry... vgwTelemetry)Information about the VPN tunnel.VpnConnectionwithVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)Information about the VPN tunnel.VpnConnectionwithVpnConnectionId(String vpnConnectionId)The ID of the VPN connection.VpnConnectionwithVpnGatewayId(String vpnGatewayId)The ID of the virtual private gateway at the AWS side of the VPN connection.
-
-
-
Method Detail
-
setVpnConnectionId
public void setVpnConnectionId(String vpnConnectionId)
The ID of the VPN connection.
- Parameters:
vpnConnectionId- The ID of the VPN connection.
-
getVpnConnectionId
public String getVpnConnectionId()
The ID of the VPN connection.
- Returns:
- The ID of the VPN connection.
-
withVpnConnectionId
public VpnConnection withVpnConnectionId(String vpnConnectionId)
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
public void setState(String state)
The current state of the VPN connection.
- Parameters:
state- The current state of the VPN connection.- See Also:
VpnState
-
getState
public String getState()
The current state of the VPN connection.
- Returns:
- The current state of the VPN connection.
- See Also:
VpnState
-
withState
public VpnConnection withState(String state)
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:
VpnState
-
setState
public void setState(VpnState state)
The current state of the VPN connection.
- Parameters:
state- The current state of the VPN connection.- See Also:
VpnState
-
withState
public VpnConnection withState(VpnState state)
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:
VpnState
-
setCustomerGatewayConfiguration
public void setCustomerGatewayConfiguration(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
pendingoravailablestate.- 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 thependingoravailablestate.
-
getCustomerGatewayConfiguration
public 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
pendingoravailablestate.- 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
pendingoravailablestate.
-
withCustomerGatewayConfiguration
public VpnConnection withCustomerGatewayConfiguration(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
pendingoravailablestate.- 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 thependingoravailablestate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The type of VPN connection.
- Parameters:
type- The type of VPN connection.- See Also:
GatewayType
-
getType
public String getType()
The type of VPN connection.
- Returns:
- The type of VPN connection.
- See Also:
GatewayType
-
withType
public VpnConnection withType(String type)
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:
GatewayType
-
setType
public void setType(GatewayType type)
The type of VPN connection.
- Parameters:
type- The type of VPN connection.- See Also:
GatewayType
-
withType
public VpnConnection withType(GatewayType type)
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:
GatewayType
-
setCustomerGatewayId
public void setCustomerGatewayId(String customerGatewayId)
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
public String 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
public VpnConnection withCustomerGatewayId(String customerGatewayId)
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
public void setVpnGatewayId(String vpnGatewayId)
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
public String 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
public VpnConnection withVpnGatewayId(String vpnGatewayId)
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
public List<Tag> getTags()
Any tags assigned to the VPN connection.
- Returns:
- Any tags assigned to the VPN connection.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the VPN connection.
- Parameters:
tags- Any tags assigned to the VPN connection.
-
withTags
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)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
public VpnConnection withTags(Collection<Tag> tags)
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
public List<VgwTelemetry> getVgwTelemetry()
Information about the VPN tunnel.
- Returns:
- Information about the VPN tunnel.
-
setVgwTelemetry
public void setVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
- Parameters:
vgwTelemetry- Information about the VPN tunnel.
-
withVgwTelemetry
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)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
public VpnConnection withVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
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
public void setOptions(VpnConnectionOptions options)
The VPN connection options.
- Parameters:
options- The VPN connection options.
-
getOptions
public VpnConnectionOptions getOptions()
The VPN connection options.
- Returns:
- The VPN connection options.
-
withOptions
public VpnConnection withOptions(VpnConnectionOptions options)
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
public List<VpnStaticRoute> getRoutes()
The static routes associated with the VPN connection.
- Returns:
- The static routes associated with the VPN connection.
-
setRoutes
public void setRoutes(Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
- Parameters:
routes- The static routes associated with the VPN connection.
-
withRoutes
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)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
public VpnConnection withRoutes(Collection<VpnStaticRoute> routes)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpnConnection clone()
-
-