Class ComputeVmInstanceViewStatus

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

public final class ComputeVmInstanceViewStatus extends Object implements com.azure.json.JsonSerializable<ComputeVmInstanceViewStatus>
Status information about a virtual machine.
  • Constructor Details

    • ComputeVmInstanceViewStatus

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

    • code

      public String code()
      Get the code property: Gets the status Code.
      Returns:
      the code value.
    • withCode

      public ComputeVmInstanceViewStatus withCode(String code)
      Set the code property: Gets the status Code.
      Parameters:
      code - the code value to set.
      Returns:
      the ComputeVmInstanceViewStatus object itself.
    • displayStatus

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

      public ComputeVmInstanceViewStatus withDisplayStatus(String displayStatus)
      Set the displayStatus property: Gets the short localizable label for the status.
      Parameters:
      displayStatus - the displayStatus value to set.
      Returns:
      the ComputeVmInstanceViewStatus object itself.
    • message

      public String message()
      Get the message property: Gets the message associated with the status.
      Returns:
      the message value.
    • withMessage

      public ComputeVmInstanceViewStatus withMessage(String message)
      Set the message property: Gets the message associated with the status.
      Parameters:
      message - the message value to set.
      Returns:
      the ComputeVmInstanceViewStatus 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<ComputeVmInstanceViewStatus>
      Throws:
      IOException
    • fromJson

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