DiagnosticOperationResult Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DiagnosticOperationResult
- com.
Implements
public final class DiagnosticOperationResult
implements JsonSerializable<DiagnosticOperationResult>
Result of an individual diagnostic operation run by a connection analyzer.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Diagnostic |
diagnosticOperation()
Get the diagnostic |
| String |
error()
Get the error property: Error encountered while running the diagnostic operation, if any. |
|
static
Diagnostic |
fromJson(JsonReader jsonReader)
Reads an instance of Diagnostic |
| String |
result()
Get the result property: The result of the diagnostic operation, serialized as a JSON string. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Method Details
diagnosticOperation
public DiagnosticOperation diagnosticOperation()
Get the diagnosticOperation property: The diagnostic operation that was run.
Returns:
error
public String error()
Get the error property: Error encountered while running the diagnostic operation, if any.
Returns:
fromJson
public static DiagnosticOperationResult fromJson(JsonReader jsonReader)
Reads an instance of DiagnosticOperationResult from the JsonReader.
Parameters:
Returns:
Throws:
result
public String result()
Get the result property: The result of the diagnostic operation, serialized as a JSON string. The payload shape varies by `diagnosticOperation`. For example, a `ConnectivityCheck` operation returns a JSON object such as `{ "ConnectivityStatus": "Reachable" }`. Consumers should parse this string as JSON according to the corresponding diagnostic operation.
Returns:
toJson
validate
public void validate()
Validates the instance.