@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpnConnection extends Object implements Serializable, Cloneable
Describes a VPN connection.
Constructor and Description |
---|
VpnConnection() |
Modifier and Type | Method and Description |
---|---|
VpnConnection |
clone() |
boolean |
equals(Object obj) |
String |
getCategory()
The category of the VPN connection.
|
String |
getCustomerGatewayConfiguration()
The configuration information for the VPN connection's customer gateway (in the native XML format).
|
String |
getCustomerGatewayId()
The ID of the customer gateway at your end of the VPN connection.
|
VpnConnectionOptions |
getOptions()
The VPN connection options.
|
List<VpnStaticRoute> |
getRoutes()
The static routes associated with the VPN connection.
|
String |
getState()
The current state of the VPN connection.
|
List<Tag> |
getTags()
Any tags assigned to the VPN connection.
|
String |
getType()
The type of VPN connection.
|
List<VgwTelemetry> |
getVgwTelemetry()
Information about the VPN tunnel.
|
String |
getVpnConnectionId()
The ID of the VPN connection.
|
String |
getVpnGatewayId()
The ID of the virtual private gateway at the AWS side of the VPN connection.
|
int |
hashCode() |
void |
setCategory(String category)
The category of the VPN connection.
|
void |
setCustomerGatewayConfiguration(String customerGatewayConfiguration)
The configuration information for the VPN connection's customer gateway (in the native XML format).
|
void |
setCustomerGatewayId(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(Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
|
void |
setState(String state)
The current state of the VPN connection.
|
void |
setState(VpnState state)
The current state of the VPN connection.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the VPN connection.
|
void |
setType(GatewayType type)
The type of VPN connection.
|
void |
setType(String type)
The type of VPN connection.
|
void |
setVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
|
void |
setVpnConnectionId(String vpnConnectionId)
The ID of the VPN connection.
|
void |
setVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN connection.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
VpnConnection |
withCategory(String category)
The category of the VPN connection.
|
VpnConnection |
withCustomerGatewayConfiguration(String customerGatewayConfiguration)
The configuration information for the VPN connection's customer gateway (in the native XML format).
|
VpnConnection |
withCustomerGatewayId(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(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(String state)
The current state of the VPN connection.
|
VpnConnection |
withState(VpnState state)
The current state of the VPN connection.
|
VpnConnection |
withTags(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(String type)
The type of VPN connection.
|
VpnConnection |
withVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection |
withVgwTelemetry(VgwTelemetry... vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection |
withVpnConnectionId(String vpnConnectionId)
The ID of the VPN connection.
|
VpnConnection |
withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN connection.
|
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 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 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(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 setCustomerGatewayId(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 String getCustomerGatewayId()
The ID of the customer gateway at your end of the VPN connection.
public VpnConnection withCustomerGatewayId(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 setCategory(String category)
The category of the VPN connection. A value of VPN
indicates an AWS VPN connection. A value of
VPN-Classic
indicates an AWS Classic VPN connection. For more information, see AWS Managed VPN
Categories in the Amazon Virtual Private Cloud User Guide.
category
- The category of the VPN connection. A value of VPN
indicates an AWS VPN connection. A value
of VPN-Classic
indicates an AWS Classic VPN connection. For more information, see AWS Managed VPN
Categories in the Amazon Virtual Private Cloud User Guide.public String getCategory()
The category of the VPN connection. A value of VPN
indicates an AWS VPN connection. A value of
VPN-Classic
indicates an AWS Classic VPN connection. For more information, see AWS Managed VPN
Categories in the Amazon Virtual Private Cloud User Guide.
VPN
indicates an AWS VPN connection. A value
of VPN-Classic
indicates an AWS Classic VPN connection. For more information, see AWS Managed VPN
Categories in the Amazon Virtual Private Cloud User Guide.public VpnConnection withCategory(String category)
The category of the VPN connection. A value of VPN
indicates an AWS VPN connection. A value of
VPN-Classic
indicates an AWS Classic VPN connection. For more information, see AWS Managed VPN
Categories in the Amazon Virtual Private Cloud User Guide.
category
- The category of the VPN connection. A value of VPN
indicates an AWS VPN connection. A value
of VPN-Classic
indicates an AWS Classic VPN connection. For more information, see AWS Managed VPN
Categories in the Amazon Virtual Private Cloud User Guide.public void setState(String state)
The current state of the VPN connection.
state
- The current state of the VPN connection.VpnState
public String getState()
The current state of the VPN connection.
VpnState
public VpnConnection withState(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 setType(String type)
The type of VPN connection.
type
- The type of VPN connection.GatewayType
public String getType()
The type of VPN connection.
GatewayType
public VpnConnection withType(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 setVpnConnectionId(String vpnConnectionId)
The ID of the VPN connection.
vpnConnectionId
- The ID of the VPN connection.public String getVpnConnectionId()
The ID of the VPN connection.
public VpnConnection withVpnConnectionId(String vpnConnectionId)
The ID of the VPN connection.
vpnConnectionId
- The ID of the VPN connection.public void setVpnGatewayId(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 String getVpnGatewayId()
The ID of the virtual private gateway at the AWS side of the VPN connection.
public VpnConnection withVpnGatewayId(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 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 List<VpnStaticRoute> getRoutes()
The static routes associated with the VPN connection.
public void setRoutes(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(Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
routes
- The static routes associated with the VPN connection.public List<Tag> getTags()
Any tags assigned to the VPN connection.
public void setTags(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(Collection<Tag> tags)
Any tags assigned to the VPN connection.
tags
- Any tags assigned to the VPN connection.public List<VgwTelemetry> getVgwTelemetry()
Information about the VPN tunnel.
public void setVgwTelemetry(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(Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
vgwTelemetry
- Information about the VPN tunnel.public String toString()
toString
in class Object
Object.toString()
public VpnConnection clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.