@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 |
getCoreNetworkArn()
The ARN of the core network.
|
String |
getCoreNetworkAttachmentArn()
The ARN of the core network attachment.
|
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.
|
String |
getGatewayAssociationState()
The current state of the gateway association.
|
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 |
getTransitGatewayId()
The ID of the transit gateway associated with 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 Amazon Web Services side of the VPN connection.
|
int |
hashCode() |
void |
setCategory(String category)
The category of the VPN connection.
|
void |
setCoreNetworkArn(String coreNetworkArn)
The ARN of the core network.
|
void |
setCoreNetworkAttachmentArn(String coreNetworkAttachmentArn)
The ARN of the core network attachment.
|
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 |
setGatewayAssociationState(GatewayAssociationState gatewayAssociationState)
The current state of the gateway association.
|
void |
setGatewayAssociationState(String gatewayAssociationState)
The current state of the gateway association.
|
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 |
setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway associated with 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 Amazon Web Services side of the VPN connection.
|
String |
toString()
Returns a string representation of this object.
|
VpnConnection |
withCategory(String category)
The category of the VPN connection.
|
VpnConnection |
withCoreNetworkArn(String coreNetworkArn)
The ARN of the core network.
|
VpnConnection |
withCoreNetworkAttachmentArn(String coreNetworkAttachmentArn)
The ARN of the core network attachment.
|
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 |
withGatewayAssociationState(GatewayAssociationState gatewayAssociationState)
The current state of the gateway association.
|
VpnConnection |
withGatewayAssociationState(String gatewayAssociationState)
The current state of the gateway association.
|
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 |
withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway associated with 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 Amazon Web Services 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 Amazon Web Services VPN connection.
A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
category
- The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN
connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.public String getCategory()
The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN connection.
A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
VPN
indicates an Amazon Web Services VPN
connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.public VpnConnection withCategory(String category)
The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN connection.
A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
category
- The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN
connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.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 Amazon Web Services side of the VPN connection.
vpnGatewayId
- The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.public String getVpnGatewayId()
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
public VpnConnection withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
vpnGatewayId
- The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.public void setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway associated with the VPN connection.
transitGatewayId
- The ID of the transit gateway associated with the VPN connection.public String getTransitGatewayId()
The ID of the transit gateway associated with the VPN connection.
public VpnConnection withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway associated with the VPN connection.
transitGatewayId
- The ID of the transit gateway associated with the VPN connection.public void setCoreNetworkArn(String coreNetworkArn)
The ARN of the core network.
coreNetworkArn
- The ARN of the core network.public String getCoreNetworkArn()
The ARN of the core network.
public VpnConnection withCoreNetworkArn(String coreNetworkArn)
The ARN of the core network.
coreNetworkArn
- The ARN of the core network.public void setCoreNetworkAttachmentArn(String coreNetworkAttachmentArn)
The ARN of the core network attachment.
coreNetworkAttachmentArn
- The ARN of the core network attachment.public String getCoreNetworkAttachmentArn()
The ARN of the core network attachment.
public VpnConnection withCoreNetworkAttachmentArn(String coreNetworkAttachmentArn)
The ARN of the core network attachment.
coreNetworkAttachmentArn
- The ARN of the core network attachment.public void setGatewayAssociationState(String gatewayAssociationState)
The current state of the gateway association.
gatewayAssociationState
- The current state of the gateway association.GatewayAssociationState
public String getGatewayAssociationState()
The current state of the gateway association.
GatewayAssociationState
public VpnConnection withGatewayAssociationState(String gatewayAssociationState)
The current state of the gateway association.
gatewayAssociationState
- The current state of the gateway association.GatewayAssociationState
public void setGatewayAssociationState(GatewayAssociationState gatewayAssociationState)
The current state of the gateway association.
gatewayAssociationState
- The current state of the gateway association.GatewayAssociationState
public VpnConnection withGatewayAssociationState(GatewayAssociationState gatewayAssociationState)
The current state of the gateway association.
gatewayAssociationState
- The current state of the gateway association.GatewayAssociationState
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()