// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.analytics.synapse.artifacts.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Error details.
 *
 * <p>Contains details when the response code indicates an error.
 */
@Fluent
public final class ErrorContract {
    /*
     * Error Response
     *
     * The error details.
     */
    @JsonProperty(value = "error")
    private ErrorResponse error;

    /** Creates an instance of ErrorContract class. */
    public ErrorContract() {}

    /**
     * Get the error property: Error Response
     *
     * <p>The error details.
     *
     * @return the error value.
     */
    public ErrorResponse getError() {
        return this.error;
    }

    /**
     * Set the error property: Error Response
     *
     * <p>The error details.
     *
     * @param error the error value to set.
     * @return the ErrorContract object itself.
     */
    public ErrorContract setError(ErrorResponse error) {
        this.error = error;
        return this;
    }
}
