@Generated(value="software.amazon.awssdk:codegen") public final class Tunnel extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Tunnel.Builder,Tunnel>
A connection between a source computer and a destination device.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Tunnel.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Tunnel.Builder |
builder() |
Instant |
createdAt()
The time when the tunnel was created.
|
String |
description()
A description of the tunnel.
|
DestinationConfig |
destinationConfig()
The destination configuration that specifies the thing name of the destination device and a service name that the
local proxy uses to connect to the destination application.
|
ConnectionState |
destinationConnectionState()
The connection state of the destination application.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Instant |
lastUpdatedAt()
The last time the tunnel was updated.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Tunnel.Builder> |
serializableBuilderClass() |
ConnectionState |
sourceConnectionState()
The connection state of the source application.
|
TunnelStatus |
status()
The status of a tunnel.
|
String |
statusAsString()
The status of a tunnel.
|
List<Tag> |
tags()
A list of tag metadata associated with the secure tunnel.
|
TimeoutConfig |
timeoutConfig()
Timeout configuration for the tunnel.
|
Tunnel.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
tunnelArn()
The Amazon Resource Name (ARN) of a tunnel.
|
String |
tunnelId()
A unique alpha-numeric ID that identifies a tunnel.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String tunnelId()
A unique alpha-numeric ID that identifies a tunnel.
public final String tunnelArn()
The Amazon Resource Name (ARN) of a tunnel.
public final TunnelStatus status()
The status of a tunnel. Valid values are: Open and Closed.
If the service returns an enum value that is not available in the current SDK version, status will
return TunnelStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
TunnelStatuspublic final String statusAsString()
The status of a tunnel. Valid values are: Open and Closed.
If the service returns an enum value that is not available in the current SDK version, status will
return TunnelStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
TunnelStatuspublic final ConnectionState sourceConnectionState()
The connection state of the source application.
public final ConnectionState destinationConnectionState()
The connection state of the destination application.
public final String description()
A description of the tunnel.
public final DestinationConfig destinationConfig()
The destination configuration that specifies the thing name of the destination device and a service name that the local proxy uses to connect to the destination application.
public final TimeoutConfig timeoutConfig()
Timeout configuration for the tunnel.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
A list of tag metadata associated with the secure tunnel.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final Instant createdAt()
The time when the tunnel was created.
public final Instant lastUpdatedAt()
The last time the tunnel was updated.
public Tunnel.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Tunnel.Builder,Tunnel>public static Tunnel.Builder builder()
public static Class<? extends Tunnel.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.