Class ResourceInstanceViewStatus

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

public final class ResourceInstanceViewStatus extends Object implements com.azure.json.JsonSerializable<ResourceInstanceViewStatus>
Instance view status.
  • Constructor Details

    • ResourceInstanceViewStatus

      public ResourceInstanceViewStatus()
      Creates an instance of ResourceInstanceViewStatus class.
  • Method Details

    • code

      public String code()
      Get the code property: The status code.
      Returns:
      the code value.
    • displayStatus

      public String displayStatus()
      Get the displayStatus property: The short localizable label for the status.
      Returns:
      the displayStatus value.
    • message

      public String message()
      Get the message property: The detailed status message, including for alerts and error messages.
      Returns:
      the message value.
    • time

      public OffsetDateTime time()
      Get the time property: The time of the status.
      Returns:
      the time value.
    • level

      public StatusLevelTypes level()
      Get the level property: The level code.
      Returns:
      the level value.
    • withLevel

      public ResourceInstanceViewStatus withLevel(StatusLevelTypes level)
      Set the level property: The level code.
      Parameters:
      level - the level value to set.
      Returns:
      the ResourceInstanceViewStatus object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResourceInstanceViewStatus>
      Throws:
      IOException
    • fromJson

      public static ResourceInstanceViewStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResourceInstanceViewStatus from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResourceInstanceViewStatus 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 ResourceInstanceViewStatus.