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

package com.azure.analytics.purview.sharing.models;

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

/**
 * The purview share error model.
 */
@Fluent
public final class PurviewShareError {
    /*
     * The purview share error body model.
     */
    @JsonProperty(value = "error", required = true)
    private PurviewShareErrorInfo error;

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

    /**
     * Get the error property: The purview share error body model.
     * 
     * @return the error value.
     */
    public PurviewShareErrorInfo getError() {
        return this.error;
    }

    /**
     * Set the error property: The purview share error body model.
     * 
     * @param error the error value to set.
     * @return the PurviewShareError object itself.
     */
    public PurviewShareError setError(PurviewShareErrorInfo error) {
        this.error = error;
        return this;
    }
}
