@Generated(value="software.amazon.awssdk:codegen") public final class VpnConnection extends Object implements ToCopyableBuilder<VpnConnection.Builder,VpnConnection>
Describes a VPN connection.
Modifier and Type | Class and Description |
---|---|
static interface |
VpnConnection.Builder |
Modifier and Type | Method and Description |
---|---|
static VpnConnection.Builder |
builder() |
String |
category()
The category of the VPN connection.
|
String |
customerGatewayConfiguration()
The configuration information for the VPN connection's customer gateway (in the native XML format).
|
String |
customerGatewayId()
The ID of the customer gateway at your end of the VPN connection.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
VpnConnectionOptions |
options()
The VPN connection options.
|
List<VpnStaticRoute> |
routes()
The static routes associated with the VPN connection.
|
static Class<? extends VpnConnection.Builder> |
serializableBuilderClass() |
VpnState |
state()
The current state of the VPN connection.
|
String |
stateAsString()
The current state of the VPN connection.
|
List<Tag> |
tags()
Any tags assigned to the VPN connection.
|
VpnConnection.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
GatewayType |
type()
The type of VPN connection.
|
String |
typeAsString()
The type of VPN connection.
|
List<VgwTelemetry> |
vgwTelemetry()
Information about the VPN tunnel.
|
String |
vpnConnectionId()
The ID of the VPN connection.
|
String |
vpnGatewayId()
The ID of the virtual private gateway at the AWS side of the VPN connection.
|
copy
public 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.
pending
or
available
state.public String customerGatewayId()
The ID of the customer gateway at your end of the VPN connection.
public 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.
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 VpnState state()
The current state of the VPN connection.
If the service returns an enum value that is not available in the current SDK version, state
will return
VpnState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
VpnState
public String stateAsString()
The current state of the VPN connection.
If the service returns an enum value that is not available in the current SDK version, state
will return
VpnState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
VpnState
public GatewayType type()
The type of VPN connection.
If the service returns an enum value that is not available in the current SDK version, type
will return
GatewayType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
GatewayType
public String typeAsString()
The type of VPN connection.
If the service returns an enum value that is not available in the current SDK version, type
will return
GatewayType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
GatewayType
public String vpnConnectionId()
The ID of the VPN connection.
public String vpnGatewayId()
The ID of the virtual private gateway at the AWS side of the VPN connection.
public VpnConnectionOptions options()
The VPN connection options.
public List<VpnStaticRoute> routes()
The static routes associated with the VPN connection.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<Tag> tags()
Any tags assigned to the VPN connection.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<VgwTelemetry> vgwTelemetry()
Information about the VPN tunnel.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public VpnConnection.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<VpnConnection.Builder,VpnConnection>
public static VpnConnection.Builder builder()
public static Class<? extends VpnConnection.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.