Class ConnectivityIssue

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

public final class ConnectivityIssue extends Object implements com.azure.json.JsonSerializable<ConnectivityIssue>
Information about an issue encountered in the process of checking for connectivity.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the context property: Provides additional context on the issue.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ConnectivityIssue from the JsonReader.
    Get the origin property: The origin of the issue.
    Get the severity property: The severity of the issue.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: The type of issue.
    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

    • ConnectivityIssue

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

    • origin

      public Origin origin()
      Get the origin property: The origin of the issue.
      Returns:
      the origin value.
    • severity

      public Severity severity()
      Get the severity property: The severity of the issue.
      Returns:
      the severity value.
    • type

      public IssueType type()
      Get the type property: The type of issue.
      Returns:
      the type value.
    • context

      public List<Map<String,String>> context()
      Get the context property: Provides additional context on the issue.
      Returns:
      the context 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<ConnectivityIssue>
      Throws:
      IOException
    • fromJson

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