com.amazonaws.services.ec2.model
Class VpnConnection

java.lang.Object
  extended by com.amazonaws.services.ec2.model.VpnConnection
All Implemented Interfaces:
java.io.Serializable

public class VpnConnection
extends java.lang.Object
implements java.io.Serializable

Describes a VPN connection.

See Also:
Serialized Form

Constructor Summary
VpnConnection()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VpnConnection

public VpnConnection()
Method Detail

getVpnConnectionId

public java.lang.String getVpnConnectionId()
The ID of the VPN connection.

Returns:
The ID of the VPN connection.

setVpnConnectionId

public void setVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.

Parameters:
vpnConnectionId - The ID of the VPN connection.

withVpnConnectionId

public VpnConnection withVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpnConnectionId - The ID of the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public java.lang.String getState()
The current state of the VPN connection.

Constraints:
Allowed Values: pending, available, deleting, deleted

Returns:
The current state of the VPN connection.
See Also:
VpnState

setState

public void setState(java.lang.String state)
The current state of the VPN connection.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the VPN connection.
See Also:
VpnState

withState

public VpnConnection withState(java.lang.String state)
The current state of the VPN connection.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the VPN connection.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: pending, available, deleting, deleted

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VpnState

getCustomerGatewayConfiguration

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.

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 or available state.

setCustomerGatewayConfiguration

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.

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 the pending or available state.

withCustomerGatewayConfiguration

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.

Returns a reference to this object so that method calls can be chained together.

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 the pending or available state.
Returns:
A reference to this updated object so that method calls can be chained together.

getType

public java.lang.String getType()
The type of VPN connection.

Constraints:
Allowed Values: ipsec.1

Returns:
The type of VPN connection.
See Also:
GatewayType

setType

public void setType(java.lang.String type)
The type of VPN connection.

Constraints:
Allowed Values: ipsec.1

Parameters:
type - The type of VPN connection.
See Also:
GatewayType

withType

public VpnConnection withType(java.lang.String type)
The type of VPN connection.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ipsec.1

Parameters:
type - The type of VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
GatewayType

setType

public void setType(GatewayType type)
The type of VPN connection.

Constraints:
Allowed Values: ipsec.1

Parameters:
type - The type of VPN connection.
See Also:
GatewayType

withType

public VpnConnection withType(GatewayType type)
The type of VPN connection.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ipsec.1

Parameters:
type - The type of VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
GatewayType

getCustomerGatewayId

public java.lang.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.

setCustomerGatewayId

public void setCustomerGatewayId(java.lang.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.

withCustomerGatewayId

public VpnConnection withCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway at your end of the VPN connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
customerGatewayId - The ID of the customer gateway at your end of the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpnGatewayId

public java.lang.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.

setVpnGatewayId

public void setVpnGatewayId(java.lang.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.

withVpnGatewayId

public VpnConnection withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpnGatewayId - The ID of the virtual private gateway at the AWS side of the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the VPN connection.

Returns:
Any tags assigned to the VPN connection.

setTags

public void setTags(java.util.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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public VpnConnection withTags(java.util.Collection<Tag> tags)
Any tags assigned to the VPN connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getVgwTelemetry

public java.util.List<VgwTelemetry> getVgwTelemetry()
Information about the VPN tunnel.

Returns:
Information about the VPN tunnel.

setVgwTelemetry

public void setVgwTelemetry(java.util.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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vgwTelemetry - Information about the VPN tunnel.
Returns:
A reference to this updated object so that method calls can be chained together.

withVgwTelemetry

public VpnConnection withVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vgwTelemetry - Information about the VPN tunnel.
Returns:
A reference to this updated object so that method calls can be chained together.

getOptions

public VpnConnectionOptions getOptions()
The VPN connection options.

Returns:
The VPN connection options.

setOptions

public void setOptions(VpnConnectionOptions options)
The VPN connection options.

Parameters:
options - The VPN connection options.

withOptions

public VpnConnection withOptions(VpnConnectionOptions options)
The VPN connection options.

Returns a reference to this object so that method calls can be chained together.

Parameters:
options - The VPN connection options.
Returns:
A reference to this updated object so that method calls can be chained together.

getRoutes

public java.util.List<VpnStaticRoute> getRoutes()
The static routes associated with the VPN connection.

Returns:
The static routes associated with the VPN connection.

setRoutes

public void setRoutes(java.util.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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
routes - The static routes associated with the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

withRoutes

public VpnConnection withRoutes(java.util.Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
routes - The static routes associated with the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.