// 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 java.util.Collection;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * Share status.
 */
public final class ShareStatus extends ExpandableStringEnum<ShareStatus> {
    /**
     * The share has not been accepted yet.
     */
    public static final ShareStatus DETACHED = fromString("Detached");

    /**
     * The share has been accepted by the recipient.
     */
    public static final ShareStatus ATTACHED = fromString("Attached");

    /**
     * Creates a new instance of ShareStatus value.
     * 
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public ShareStatus() {
    }

    /**
     * Creates or finds a ShareStatus from its string representation.
     * 
     * @param name a name to look for.
     * @return the corresponding ShareStatus.
     */
    @JsonCreator
    public static ShareStatus fromString(String name) {
        return fromString(name, ShareStatus.class);
    }

    /**
     * Gets known ShareStatus values.
     * 
     * @return known ShareStatus values.
     */
    public static Collection<ShareStatus> values() {
        return values(ShareStatus.class);
    }
}
