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 Details

    • TunnelConnectionHealth

      public TunnelConnectionHealth()
      Creates an instance of TunnelConnectionHealth class.
  • Method Details

    • tunnel

      public String tunnel()
      Get the tunnel property: Tunnel name.
      Returns:
      the tunnel value.
    • connectionStatus

      public VirtualNetworkGatewayConnectionStatus connectionStatus()
      Get the connectionStatus property: Virtual Network Gateway connection status.
      Returns:
      the connectionStatus value.
    • ingressBytesTransferred

      public Long ingressBytesTransferred()
      Get the ingressBytesTransferred property: The Ingress Bytes Transferred in this connection.
      Returns:
      the ingressBytesTransferred value.
    • egressBytesTransferred

      public Long egressBytesTransferred()
      Get the egressBytesTransferred property: The Egress Bytes Transferred in this connection.
      Returns:
      the egressBytesTransferred value.
    • lastConnectionEstablishedUtcTime

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.