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

package com.azure.ai.formrecognizer.documentanalysis.implementation.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Error response object. */
@Immutable
public final class ErrorResponse {
    /*
     * Error info.
     */
    @JsonProperty(value = "error", required = true)
    private Error error;

    /**
     * Creates an instance of ErrorResponse class.
     *
     * @param error the error value to set.
     */
    @JsonCreator
    private ErrorResponse(@JsonProperty(value = "error", required = true) Error error) {
        this.error = error;
    }

    /**
     * Get the error property: Error info.
     *
     * @return the error value.
     */
    public Error getError() {
        return this.error;
    }
}
