com.amazonaws.services.ec2.model
Class VpnConnection

java.lang.Object
  extended by com.amazonaws.services.ec2.model.VpnConnection

public class VpnConnection
extends java.lang.Object

The VpnConnection data type.


Constructor Summary
VpnConnection()
           
 
Method Summary
 java.lang.String getCustomerGatewayConfiguration()
          Contains configuration information in the native XML format for the VPN connection's customer gateway.
 java.lang.String getCustomerGatewayId()
          Specifies ID of the customer gateway at the end of the VPN connection.
 java.lang.String getState()
          Describes the current state of the VPN connection.
 java.util.List<Tag> getTags()
          A list of tags for the VpnConnection.
 java.lang.String getType()
          Specifies the type of VPN connection.
 java.lang.String getVpnConnectionId()
          Specifies the ID of the VPN gateway at the VPC end of the VPN connection.
 java.lang.String getVpnGatewayId()
          Specfies the ID of the VPN gateway at the VPC end of the VPN connection.
 void setCustomerGatewayConfiguration(java.lang.String customerGatewayConfiguration)
          Contains configuration information in the native XML format for the VPN connection's customer gateway.
 void setCustomerGatewayId(java.lang.String customerGatewayId)
          Specifies ID of the customer gateway at the end of the VPN connection.
 void setState(java.lang.String state)
          Describes the current state of the VPN connection.
 void setTags(java.util.Collection<Tag> tags)
          A list of tags for the VpnConnection.
 void setType(java.lang.String type)
          Specifies the type of VPN connection.
 void setVpnConnectionId(java.lang.String vpnConnectionId)
          Specifies the ID of the VPN gateway at the VPC end of the VPN connection.
 void setVpnGatewayId(java.lang.String vpnGatewayId)
          Specfies the ID of the VPN gateway at the VPC end 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)
          Contains configuration information in the native XML format for the VPN connection's customer gateway.
 VpnConnection withCustomerGatewayId(java.lang.String customerGatewayId)
          Specifies ID of the customer gateway at the end of the VPN connection.
 VpnConnection withState(java.lang.String state)
          Describes the current state of the VPN connection.
 VpnConnection withTags(java.util.Collection<Tag> tags)
          A list of tags for the VpnConnection.
 VpnConnection withTags(Tag... tags)
          A list of tags for the VpnConnection.
 VpnConnection withType(java.lang.String type)
          Specifies the type of VPN connection.
 VpnConnection withVpnConnectionId(java.lang.String vpnConnectionId)
          Specifies the ID of the VPN gateway at the VPC end of the VPN connection.
 VpnConnection withVpnGatewayId(java.lang.String vpnGatewayId)
          Specfies the ID of the VPN gateway at the VPC end of the VPN connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VpnConnection

public VpnConnection()
Method Detail

getVpnConnectionId

public java.lang.String getVpnConnectionId()
Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

Returns:
Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

setVpnConnectionId

public void setVpnConnectionId(java.lang.String vpnConnectionId)
Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

Parameters:
vpnConnectionId - Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

withVpnConnectionId

public VpnConnection withVpnConnectionId(java.lang.String vpnConnectionId)
Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

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

Parameters:
vpnConnectionId - Specifies the ID of the VPN gateway at the VPC end 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()
Describes the current state of the VPN connection. Valid values are pending, available, deleting, and deleted.

Returns:
Describes the current state of the VPN connection. Valid values are pending, available, deleting, and deleted.

setState

public void setState(java.lang.String state)
Describes the current state of the VPN connection. Valid values are pending, available, deleting, and deleted.

Parameters:
state - Describes the current state of the VPN connection. Valid values are pending, available, deleting, and deleted.

withState

public VpnConnection withState(java.lang.String state)
Describes the current state of the VPN connection. Valid values are pending, available, deleting, and deleted.

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

Parameters:
state - Describes the current state of the VPN connection. Valid values are pending, available, deleting, and deleted.
Returns:
A reference to this updated object so that method calls can be chained together.

getCustomerGatewayConfiguration

public java.lang.String getCustomerGatewayConfiguration()
Contains configuration information in the native XML format for the VPN connection's customer gateway.

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:
Contains configuration information in the native XML format for the VPN connection's customer gateway.

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)
Contains configuration information in the native XML format for the VPN connection's customer gateway.

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 - Contains configuration information in the native XML format for the VPN connection's customer gateway.

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)
Contains configuration information in the native XML format for the VPN connection's customer gateway.

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 - Contains configuration information in the native XML format for the VPN connection's customer gateway.

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()
Specifies the type of VPN connection.

Returns:
Specifies the type of VPN connection.

setType

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

Parameters:
type - Specifies the type of VPN connection.

withType

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

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

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

getCustomerGatewayId

public java.lang.String getCustomerGatewayId()
Specifies ID of the customer gateway at the end of the VPN connection.

Returns:
Specifies ID of the customer gateway at the end of the VPN connection.

setCustomerGatewayId

public void setCustomerGatewayId(java.lang.String customerGatewayId)
Specifies ID of the customer gateway at the end of the VPN connection.

Parameters:
customerGatewayId - Specifies ID of the customer gateway at the end of the VPN connection.

withCustomerGatewayId

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

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

Parameters:
customerGatewayId - Specifies ID of the customer gateway at the 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()
Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

Returns:
Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

setVpnGatewayId

public void setVpnGatewayId(java.lang.String vpnGatewayId)
Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

Parameters:
vpnGatewayId - Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

withVpnGatewayId

public VpnConnection withVpnGatewayId(java.lang.String vpnGatewayId)
Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

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

Parameters:
vpnGatewayId - Specfies the ID of the VPN gateway at the VPC end 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()
A list of tags for the VpnConnection.

Returns:
A list of tags for the VpnConnection.

setTags

public void setTags(java.util.Collection<Tag> tags)
A list of tags for the VpnConnection.

Parameters:
tags - A list of tags for the VpnConnection.

withTags

public VpnConnection withTags(Tag... tags)
A list of tags for the VpnConnection.

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

Parameters:
tags - A list of tags for the VpnConnection.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public VpnConnection withTags(java.util.Collection<Tag> tags)
A list of tags for the VpnConnection.

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

Parameters:
tags - A list of tags for the VpnConnection.
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()


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