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

package com.azure.resourcemanager.databoxedge.models;

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

/** Current status of the share. */
public final class ShareStatus extends ExpandableStringEnum<ShareStatus> {
    /** Static value Offline for ShareStatus. */
    public static final ShareStatus OFFLINE = fromString("Offline");

    /** Static value Unknown for ShareStatus. */
    public static final ShareStatus UNKNOWN = fromString("Unknown");

    /** Static value OK for ShareStatus. */
    public static final ShareStatus OK = fromString("OK");

    /** Static value Updating for ShareStatus. */
    public static final ShareStatus UPDATING = fromString("Updating");

    /** Static value NeedsAttention for ShareStatus. */
    public static final ShareStatus NEEDS_ATTENTION = fromString("NeedsAttention");

    /**
     * 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);
    }
}
