Share via


InstanceViewStatus Class

  • java.lang.Object
    • com.azure.compute.batch.models.InstanceViewStatus

Implements

public final class InstanceViewStatus
implements JsonSerializable<InstanceViewStatus>

The instance view status.

Method Summary

Modifier and Type Method and Description
static InstanceViewStatus fromJson(JsonReader jsonReader)

Reads an instance of InstanceViewStatus from the JsonReader.

String getCode()

Get the code property: The status code.

String getDisplayStatus()

Get the displayStatus property: The localized label for the status.

StatusLevelTypes getLevel()

Get the level property: Level code.

String getMessage()

Get the message property: The detailed status message.

OffsetDateTime getTime()

Get the time property: The time of the status.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static InstanceViewStatus fromJson(JsonReader jsonReader)

Reads an instance of InstanceViewStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCode

public String getCode()

Get the code property: The status code.

Returns:

the code value.

getDisplayStatus

public String getDisplayStatus()

Get the displayStatus property: The localized label for the status.

Returns:

the displayStatus value.

getLevel

public StatusLevelTypes getLevel()

Get the level property: Level code.

Returns:

the level value.

getMessage

public String getMessage()

Get the message property: The detailed status message.

Returns:

the message value.

getTime

public OffsetDateTime getTime()

Get the time property: The time of the status.

Returns:

the time value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to