Class InstanceViewStatus

java.lang.Object
com.azure.compute.batch.models.InstanceViewStatus
All Implemented Interfaces:
com.azure.json.JsonSerializable<InstanceViewStatus>

public final class InstanceViewStatus extends Object implements com.azure.json.JsonSerializable<InstanceViewStatus>
The instance view status.
  • Method Details

    • 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 com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<InstanceViewStatus>
      Throws:
      IOException
    • fromJson

      public static InstanceViewStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.