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

package com.azure.resourcemanager.compute.models;

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

/**
 * The sharing state of the gallery.
 *
 * <p>The sharing state of the gallery, which only appears in the response.
 */
public final class SharingState extends ExpandableStringEnum<SharingState> {
    /** Static value Succeeded for SharingState. */
    public static final SharingState SUCCEEDED = fromString("Succeeded");

    /** Static value InProgress for SharingState. */
    public static final SharingState IN_PROGRESS = fromString("InProgress");

    /** Static value Failed for SharingState. */
    public static final SharingState FAILED = fromString("Failed");

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

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

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

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