java.lang.Object
com.azure.resourcemanager.managedapplications.models.ErrorResponse

public final class ErrorResponse extends Object
Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message.
  • Constructor Details

    • ErrorResponse

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

    • httpStatus

      public String httpStatus()
      Get the httpStatus property: Http status code.
      Returns:
      the httpStatus value.
    • withHttpStatus

      public ErrorResponse withHttpStatus(String httpStatus)
      Set the httpStatus property: Http status code.
      Parameters:
      httpStatus - the httpStatus value to set.
      Returns:
      the ErrorResponse object itself.
    • errorCode

      public String errorCode()
      Get the errorCode property: Error code.
      Returns:
      the errorCode value.
    • withErrorCode

      public ErrorResponse withErrorCode(String errorCode)
      Set the errorCode property: Error code.
      Parameters:
      errorCode - the errorCode value to set.
      Returns:
      the ErrorResponse object itself.
    • errorMessage

      public String errorMessage()
      Get the errorMessage property: Error message indicating why the operation failed.
      Returns:
      the errorMessage value.
    • withErrorMessage

      public ErrorResponse withErrorMessage(String errorMessage)
      Set the errorMessage property: Error message indicating why the operation failed.
      Parameters:
      errorMessage - the errorMessage value to set.
      Returns:
      the ErrorResponse object itself.
    • validate

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