Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.resources; import com.fasterxml.jackson.annotation.JsonProperty;
Error response indicates ARM is not able to process the incoming request. The reason is provided in the error message.
/** * Error response indicates ARM is not able to process the incoming request. * The reason is provided in the error message. */
public class ResourceErrorResponse {
Http status code.
/** * Http status code. */
@JsonProperty(value = "httpStatus") private String httpStatus;
Error code.
/** * Error code. */
@JsonProperty(value = "errorCode") private String errorCode;
Error message indicating why the operation failed.
/** * Error message indicating why the operation failed. */
@JsonProperty(value = "errorMessage") private String errorMessage;
Get http status code.
Returns:the httpStatus value
/** * Get http status code. * * @return the httpStatus value */
public String httpStatus() { return this.httpStatus; }
Set http status code.
Params:
  • httpStatus – the httpStatus value to set
Returns:the ErrorResponse object itself.
/** * Set http status code. * * @param httpStatus the httpStatus value to set * @return the ErrorResponse object itself. */
public ResourceErrorResponse withHttpStatus(String httpStatus) { this.httpStatus = httpStatus; return this; }
Get error code.
Returns:the errorCode value
/** * Get error code. * * @return the errorCode value */
public String errorCode() { return this.errorCode; }
Set error code.
Params:
  • errorCode – the errorCode value to set
Returns:the ErrorResponse object itself.
/** * Set error code. * * @param errorCode the errorCode value to set * @return the ErrorResponse object itself. */
public ResourceErrorResponse withErrorCode(String errorCode) { this.errorCode = errorCode; return this; }
Get error message indicating why the operation failed.
Returns:the errorMessage value
/** * Get error message indicating why the operation failed. * * @return the errorMessage value */
public String errorMessage() { return this.errorMessage; }
Set error message indicating why the operation failed.
Params:
  • errorMessage – the errorMessage value to set
Returns:the ErrorResponse object itself.
/** * Set error message indicating why the operation failed. * * @param errorMessage the errorMessage value to set * @return the ErrorResponse object itself. */
public ResourceErrorResponse withErrorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } }