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

package com.azure.mixedreality.remoterendering.implementation.models;

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

/** The error response containing details of why the request failed. */
@Fluent
public final class ErrorResponse {
    /*
     * The error object containing details of why the request failed.
     */
    @JsonProperty(value = "error", required = true)
    private Error error;

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

    /**
     * Get the error property: The error object containing details of why the request failed.
     *
     * @return the error value.
     */
    public Error getError() {
        return this.error;
    }
}
