Class ResourceErrorResponse

java.lang.Object
com.microsoft.azure.management.resources.ResourceErrorResponse

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

    • ResourceErrorResponse

      public ResourceErrorResponse()
  • Method Details

    • httpStatus

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

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

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

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

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

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