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.storage; import com.fasterxml.jackson.annotation.JsonProperty;
An error response from the storage resource provider.
/** * An error response from the storage resource provider. */
public class ErrorResponse {
An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
/** * An identifier for the error. Codes are invariant and are intended to be * consumed programmatically. */
@JsonProperty(value = "code") private String code;
A message describing the error, intended to be suitable for display in a user interface.
/** * A message describing the error, intended to be suitable for display in a * user interface. */
@JsonProperty(value = "message") private String message;
Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically.
Returns:the code value
/** * Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically. * * @return the code value */
public String code() { return this.code; }
Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically.
Params:
  • code – the code value to set
Returns:the ErrorResponse object itself.
/** * Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically. * * @param code the code value to set * @return the ErrorResponse object itself. */
public ErrorResponse withCode(String code) { this.code = code; return this; }
Get a message describing the error, intended to be suitable for display in a user interface.
Returns:the message value
/** * Get a message describing the error, intended to be suitable for display in a user interface. * * @return the message value */
public String message() { return this.message; }
Set a message describing the error, intended to be suitable for display in a user interface.
Params:
  • message – the message value to set
Returns:the ErrorResponse object itself.
/** * Set a message describing the error, intended to be suitable for display in a user interface. * * @param message the message value to set * @return the ErrorResponse object itself. */
public ErrorResponse withMessage(String message) { this.message = message; return this; } }