Class ConnectivityHop

java.lang.Object
com.azure.resourcemanager.apimanagement.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 Summary

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

    Modifier and Type
    Method
    Description
    Get the address property: The IP address of the hop.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ConnectivityHop from the JsonReader.
    id()
    Get the id property: The ID of the hop.
    Get the issues property: List of issues.
    Get the nextHopIds property: List of next hop identifiers.
    Get the resourceId property: The ID of the resource corresponding to this hop.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: The type of the hop.
    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

    • 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.
    • 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.