DiagnosticOperationResult Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.DiagnosticOperationResult

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
DiagnosticOperation diagnosticOperation()

Get the diagnosticOperation property: The diagnostic operation that was run.

String error()

Get the error property: Error encountered while running the diagnostic operation, if any.

static DiagnosticOperationResult fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticOperationResult from the JsonReader.

String result()

Get the result property: The result of the diagnostic operation, serialized as a JSON string.

JsonWriter 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:

the diagnosticOperation value.

error

public String error()

Get the error property: Error encountered while running the diagnostic operation, if any.

Returns:

the error value.

fromJson

public static DiagnosticOperationResult fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticOperationResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiagnosticOperationResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the result value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to