SessionHostHealthCheckFailureDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.models.SessionHostHealthCheckFailureDetails

Implements

public final class SessionHostHealthCheckFailureDetails
implements JsonSerializable<SessionHostHealthCheckFailureDetails>

Contains details on the failure.

Constructor Summary

Constructor Description
SessionHostHealthCheckFailureDetails()

Creates an instance of SessionHostHealthCheckFailureDetails class.

Method Summary

Modifier and Type Method and Description
Integer errorCode()

Get the errorCode property: Error code corresponding for the failure.

static SessionHostHealthCheckFailureDetails fromJson(JsonReader jsonReader)

Reads an instance of SessionHostHealthCheckFailureDetails from the JsonReader.

OffsetDateTime lastHealthCheckDateTime()

Get the lastHealthCheckDateTime property: The timestamp of the last update.

String message()

Get the message property: Failure message: hints on what is wrong and how to recover.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SessionHostHealthCheckFailureDetails

public SessionHostHealthCheckFailureDetails()

Creates an instance of SessionHostHealthCheckFailureDetails class.

Method Details

errorCode

public Integer errorCode()

Get the errorCode property: Error code corresponding for the failure.

Returns:

the errorCode value.

fromJson

public static SessionHostHealthCheckFailureDetails fromJson(JsonReader jsonReader)

Reads an instance of SessionHostHealthCheckFailureDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SessionHostHealthCheckFailureDetails 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 SessionHostHealthCheckFailureDetails.

lastHealthCheckDateTime

public OffsetDateTime lastHealthCheckDateTime()

Get the lastHealthCheckDateTime property: The timestamp of the last update.

Returns:

the lastHealthCheckDateTime value.

message

public String message()

Get the message property: Failure message: hints on what is wrong and how to recover.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to