Class ConnectivityHop

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

public final class ConnectivityHop extends Object implements com.azure.json.JsonSerializable<ConnectivityHop>
Information about a hop between the source and the destination.
  • Constructor Details

    • ConnectivityHop

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

    • type

      public String type()
      Get the type property: The type of the hop.
      Returns:
      the type value.
    • id

      public String id()
      Get the id property: The ID of the hop.
      Returns:
      the id value.
    • address

      public String address()
      Get the address property: The IP address of the hop.
      Returns:
      the address value.
    • resourceId

      public String resourceId()
      Get the resourceId property: The ID of the resource corresponding to this hop.
      Returns:
      the resourceId value.
    • nextHopIds

      public List<String> nextHopIds()
      Get the nextHopIds property: List of next hop identifiers.
      Returns:
      the nextHopIds value.
    • previousHopIds

      public List<String> previousHopIds()
      Get the previousHopIds property: List of previous hop identifiers.
      Returns:
      the previousHopIds value.
    • links

      public List<HopLink> links()
      Get the links property: List of hop links.
      Returns:
      the links value.
    • previousLinks

      public List<HopLink> previousLinks()
      Get the previousLinks property: List of previous hop links.
      Returns:
      the previousLinks value.
    • issues

      public List<ConnectivityIssue> issues()
      Get the issues property: List of issues.
      Returns:
      the issues 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<ConnectivityHop>
      Throws:
      IOException
    • fromJson

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