Class StatusMessage

java.lang.Object
com.azure.resourcemanager.resources.models.StatusMessage

public final class StatusMessage extends Object
Operation status message object.
  • Constructor Details

    • StatusMessage

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

    • status

      public String status()
      Get the status property: Status of the deployment operation.
      Returns:
      the status value.
    • withStatus

      public StatusMessage withStatus(String status)
      Set the status property: Status of the deployment operation.
      Parameters:
      status - the status value to set.
      Returns:
      the StatusMessage object itself.
    • error

      public com.azure.core.management.exception.ManagementError error()
      Get the error property: Error Response

      The error reported by the operation.

      Returns:
      the error value.
    • withError

      public StatusMessage withError(com.azure.core.management.exception.ManagementError error)
      Set the error property: Error Response

      The error reported by the operation.

      Parameters:
      error - the error value to set.
      Returns:
      the StatusMessage object itself.
    • validate

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