public class VpnConnection extends Object implements Serializable
The VpnConnection data type.
Constructor and Description |
---|
VpnConnection() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCustomerGatewayConfiguration()
Contains configuration information in the native XML format for the
VPN connection's customer gateway.
|
String |
getCustomerGatewayId()
Specifies ID of the customer gateway at the end of the VPN connection.
|
VpnConnectionOptions |
getOptions()
Returns the value of the Options property for this object.
|
List<VpnStaticRoute> |
getRoutes()
Returns the value of the Routes property for this object.
|
String |
getState()
Describes the current state of the VPN connection.
|
List<Tag> |
getTags()
A list of tags for the VpnConnection.
|
String |
getType()
Specifies the type of VPN connection.
|
List<VgwTelemetry> |
getVgwTelemetry()
Returns the value of the VgwTelemetry property for this object.
|
String |
getVpnConnectionId()
Specifies the ID of the VPN gateway at the VPC end of the VPN
connection.
|
String |
getVpnGatewayId()
Specfies the ID of the VPN gateway at the VPC end of the VPN
connection.
|
int |
hashCode() |
void |
setCustomerGatewayConfiguration(String customerGatewayConfiguration)
Contains configuration information in the native XML format for the
VPN connection's customer gateway.
|
void |
setCustomerGatewayId(String customerGatewayId)
Specifies ID of the customer gateway at the end of the VPN connection.
|
void |
setOptions(VpnConnectionOptions options)
Sets the value of the Options property for this object.
|
void |
setRoutes(Collection<VpnStaticRoute> routes)
Sets the value of the Routes property for this object.
|
void |
setState(String state)
Describes the current state of the VPN connection.
|
void |
setState(VpnState state)
Describes the current state of the VPN connection.
|
void |
setTags(Collection<Tag> tags)
A list of tags for the VpnConnection.
|
void |
setType(GatewayType type)
Specifies the type of VPN connection.
|
void |
setType(String type)
Specifies the type of VPN connection.
|
void |
setVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Sets the value of the VgwTelemetry property for this object.
|
void |
setVpnConnectionId(String vpnConnectionId)
Specifies the ID of the VPN gateway at the VPC end of the VPN
connection.
|
void |
setVpnGatewayId(String vpnGatewayId)
Specfies the ID of the VPN gateway at the VPC end of the VPN
connection.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VpnConnection |
withCustomerGatewayConfiguration(String customerGatewayConfiguration)
Contains configuration information in the native XML format for the
VPN connection's customer gateway.
|
VpnConnection |
withCustomerGatewayId(String customerGatewayId)
Specifies ID of the customer gateway at the end of the VPN connection.
|
VpnConnection |
withOptions(VpnConnectionOptions options)
Sets the value of the Options property for this object.
|
VpnConnection |
withRoutes(Collection<VpnStaticRoute> routes)
Sets the value of the Routes property for this object.
|
VpnConnection |
withRoutes(VpnStaticRoute... routes)
Sets the value of the Routes property for this object.
|
VpnConnection |
withState(String state)
Describes the current state of the VPN connection.
|
VpnConnection |
withState(VpnState state)
Describes the current state of the VPN connection.
|
VpnConnection |
withTags(Collection<Tag> tags)
A list of tags for the VpnConnection.
|
VpnConnection |
withTags(Tag... tags)
A list of tags for the VpnConnection.
|
VpnConnection |
withType(GatewayType type)
Specifies the type of VPN connection.
|
VpnConnection |
withType(String type)
Specifies the type of VPN connection.
|
VpnConnection |
withVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Sets the value of the VgwTelemetry property for this object.
|
VpnConnection |
withVgwTelemetry(VgwTelemetry... vgwTelemetry)
Sets the value of the VgwTelemetry property for this object.
|
VpnConnection |
withVpnConnectionId(String vpnConnectionId)
Specifies the ID of the VPN gateway at the VPC end of the VPN
connection.
|
VpnConnection |
withVpnGatewayId(String vpnGatewayId)
Specfies the ID of the VPN gateway at the VPC end of the VPN
connection.
|
public String getVpnConnectionId()
public void setVpnConnectionId(String vpnConnectionId)
vpnConnectionId
- Specifies the ID of the VPN gateway at the VPC end of the VPN
connection.public VpnConnection withVpnConnectionId(String vpnConnectionId)
Returns a reference to this object so that method calls can be chained together.
vpnConnectionId
- Specifies the ID of the VPN gateway at the VPC end of the VPN
connection.public String getState()
pending
, available
, deleting
,
and deleted
.
Constraints:
Allowed Values: pending, available, deleting, deleted
pending
, available
, deleting
,
and deleted
.VpnState
public void setState(String state)
pending
, available
, deleting
,
and deleted
.
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- Describes the current state of the VPN connection. Valid values are
pending
, available
, deleting
,
and deleted
.VpnState
public VpnConnection withState(String state)
pending
, available
, deleting
,
and deleted
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- Describes the current state of the VPN connection. Valid values are
pending
, available
, deleting
,
and deleted
.VpnState
public void setState(VpnState state)
pending
, available
, deleting
,
and deleted
.
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- Describes the current state of the VPN connection. Valid values are
pending
, available
, deleting
,
and deleted
.VpnState
public VpnConnection withState(VpnState state)
pending
, available
, deleting
,
and deleted
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state
- Describes the current state of the VPN connection. Valid values are
pending
, available
, deleting
,
and deleted
.VpnState
public String getCustomerGatewayConfiguration()
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.
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 setCustomerGatewayConfiguration(String customerGatewayConfiguration)
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
- 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.
public VpnConnection withCustomerGatewayConfiguration(String customerGatewayConfiguration)
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.
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.
public String getType()
Constraints:
Allowed Values: ipsec.1
GatewayType
public void setType(String type)
Constraints:
Allowed Values: ipsec.1
type
- Specifies the type of VPN connection.GatewayType
public VpnConnection withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ipsec.1
type
- Specifies the type of VPN connection.GatewayType
public void setType(GatewayType type)
Constraints:
Allowed Values: ipsec.1
type
- Specifies 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
- Specifies the type of VPN connection.GatewayType
public String getCustomerGatewayId()
public void setCustomerGatewayId(String customerGatewayId)
customerGatewayId
- Specifies ID of the customer gateway at the end of the VPN connection.public VpnConnection withCustomerGatewayId(String customerGatewayId)
Returns a reference to this object so that method calls can be chained together.
customerGatewayId
- Specifies ID of the customer gateway at the end of the VPN connection.public String getVpnGatewayId()
public void setVpnGatewayId(String vpnGatewayId)
vpnGatewayId
- Specfies the ID of the VPN gateway at the VPC end of the VPN
connection.public VpnConnection withVpnGatewayId(String vpnGatewayId)
Returns a reference to this object so that method calls can be chained together.
vpnGatewayId
- Specfies the ID of the VPN gateway at the VPC end of the VPN
connection.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- A list of tags for the VpnConnection.public VpnConnection withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the VpnConnection.public VpnConnection withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the VpnConnection.public List<VgwTelemetry> getVgwTelemetry()
public void setVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
vgwTelemetry
- The new value for the VgwTelemetry property for this object.public VpnConnection withVgwTelemetry(VgwTelemetry... vgwTelemetry)
Returns a reference to this object so that method calls can be chained together.
vgwTelemetry
- The new value for the VgwTelemetry property for this object.public VpnConnection withVgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Returns a reference to this object so that method calls can be chained together.
vgwTelemetry
- The new value for the VgwTelemetry property for this object.public VpnConnectionOptions getOptions()
public void setOptions(VpnConnectionOptions options)
options
- The new value for the Options property for this object.public VpnConnection withOptions(VpnConnectionOptions options)
Returns a reference to this object so that method calls can be chained together.
options
- The new value for the Options property for this object.public List<VpnStaticRoute> getRoutes()
public void setRoutes(Collection<VpnStaticRoute> routes)
routes
- The new value for the Routes property for this object.public VpnConnection withRoutes(VpnStaticRoute... routes)
Returns a reference to this object so that method calls can be chained together.
routes
- The new value for the Routes property for this object.public VpnConnection withRoutes(Collection<VpnStaticRoute> routes)
Returns a reference to this object so that method calls can be chained together.
routes
- The new value for the Routes property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.