Class StatusMessage

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.core.management.exception.ManagementError
    Get the error property: Error Response The error reported by the operation.
    Get the status property: Status of the deployment operation.
    void
    Validates the instance.
    withError(com.azure.core.management.exception.ManagementError error)
    Set the error property: Error Response The error reported by the operation.
    Set the status property: Status of the deployment operation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StatusMessage

      public StatusMessage()
  • 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.