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 -
Method Summary
Modifier and TypeMethodDescriptioncontext()Get the context property: Provides additional context on the issue.static ConnectivityIssuefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectivityIssue from the JsonReader.origin()Get the origin property: The origin of the issue.severity()Get the severity property: The severity of the issue.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of issue.voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Get the origin property: The origin of the issue.- Returns:
- the origin value.
-
severity
Get the severity property: The severity of the issue.- Returns:
- the severity value.
-
type
Get the type property: The type of issue.- Returns:
- the type value.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ConnectivityIssue>- Throws:
IOException
-
fromJson
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.
-