Class TunnelConnectionHealth
java.lang.Object
com.azure.resourcemanager.network.models.TunnelConnectionHealth
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TunnelConnectionHealth>
public final class TunnelConnectionHealth
extends Object
implements com.azure.json.JsonSerializable<TunnelConnectionHealth>
VirtualNetworkGatewayConnection properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TunnelConnectionHealth class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionStatus property: Virtual Network Gateway connection status.Get the egressBytesTransferred property: The Egress Bytes Transferred in this connection.static TunnelConnectionHealthfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TunnelConnectionHealth from the JsonReader.Get the ingressBytesTransferred property: The Ingress Bytes Transferred in this connection.Get the lastConnectionEstablishedUtcTime property: The time at which connection was established in Utc format.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) tunnel()Get the tunnel property: Tunnel name.voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TunnelConnectionHealth
public TunnelConnectionHealth()Creates an instance of TunnelConnectionHealth class.
-
-
Method Details
-
tunnel
Get the tunnel property: Tunnel name.- Returns:
- the tunnel value.
-
connectionStatus
Get the connectionStatus property: Virtual Network Gateway connection status.- Returns:
- the connectionStatus value.
-
ingressBytesTransferred
Get the ingressBytesTransferred property: The Ingress Bytes Transferred in this connection.- Returns:
- the ingressBytesTransferred value.
-
egressBytesTransferred
Get the egressBytesTransferred property: The Egress Bytes Transferred in this connection.- Returns:
- the egressBytesTransferred value.
-
lastConnectionEstablishedUtcTime
Get the lastConnectionEstablishedUtcTime property: The time at which connection was established in Utc format.- Returns:
- the lastConnectionEstablishedUtcTime value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TunnelConnectionHealth>- Throws:
IOException
-
fromJson
public static TunnelConnectionHealth fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TunnelConnectionHealth from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TunnelConnectionHealth if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TunnelConnectionHealth.
-