Class ComputeVmInstanceViewStatus

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ComputeVmInstanceViewStatus

public final class ComputeVmInstanceViewStatus extends Object
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.