java.lang.Object
com.azure.resourcemanager.network.models.HopLink
All Implemented Interfaces:
com.azure.json.JsonSerializable<HopLink>

public final class HopLink extends Object implements com.azure.json.JsonSerializable<HopLink>
Hop link.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of HopLink class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the context property: Provides additional context on links.
    static HopLink
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of HopLink from the JsonReader.
    Get the issues property: List of issues.
    Get the linkType property: Link type.
    Get the nextHopId property: The ID of the next hop.
    Get the resourceId property: Resource ID.
    Get the roundTripTimeAvg property: Average roundtrip time in milliseconds.
    Get the roundTripTimeMax property: Maximum roundtrip time in milliseconds.
    Get the roundTripTimeMin property: Minimum roundtrip time in milliseconds.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • HopLink

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

    • nextHopId

      public String nextHopId()
      Get the nextHopId property: The ID of the next hop.
      Returns:
      the nextHopId value.
    • linkType

      public String linkType()
      Get the linkType property: Link type.
      Returns:
      the linkType value.
    • issues

      public List<ConnectivityIssue> issues()
      Get the issues property: List of issues.
      Returns:
      the issues value.
    • context

      public Map<String,String> context()
      Get the context property: Provides additional context on links.
      Returns:
      the context value.
    • resourceId

      public String resourceId()
      Get the resourceId property: Resource ID.
      Returns:
      the resourceId value.
    • roundTripTimeMin

      public Long roundTripTimeMin()
      Get the roundTripTimeMin property: Minimum roundtrip time in milliseconds.
      Returns:
      the roundTripTimeMin value.
    • roundTripTimeAvg

      public Long roundTripTimeAvg()
      Get the roundTripTimeAvg property: Average roundtrip time in milliseconds.
      Returns:
      the roundTripTimeAvg value.
    • roundTripTimeMax

      public Long roundTripTimeMax()
      Get the roundTripTimeMax property: Maximum roundtrip time in milliseconds.
      Returns:
      the roundTripTimeMax 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<HopLink>
      Throws:
      IOException
    • fromJson

      public static HopLink fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of HopLink from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of HopLink 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 HopLink.