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.cdn; import com.fasterxml.jackson.annotation.JsonProperty;
Error response. Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
/** * Error response. * Common error response for all Azure Resource Manager APIs to return error * details for failed operations. (This also follows the OData error response * format.). */
public class AfdErrorResponse {
The error object.
/** * The error object. */
@JsonProperty(value = "error") private ErrorResponse error;
Get the error object.
Returns:the error value
/** * Get the error object. * * @return the error value */
public ErrorResponse error() { return this.error; }
Set the error object.
Params:
  • error – the error value to set
Returns:the AfdErrorResponse object itself.
/** * Set the error object. * * @param error the error value to set * @return the AfdErrorResponse object itself. */
public AfdErrorResponse withError(ErrorResponse error) { this.error = error; return this; } }