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

package com.azure.resourcemanager.avs.models;

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

/** The operational status of the datastore. */
public final class DatastoreStatus extends ExpandableStringEnum<DatastoreStatus> {
    /** Static value Unknown for DatastoreStatus. */
    public static final DatastoreStatus UNKNOWN = fromString("Unknown");

    /** Static value Accessible for DatastoreStatus. */
    public static final DatastoreStatus ACCESSIBLE = fromString("Accessible");

    /** Static value Inaccessible for DatastoreStatus. */
    public static final DatastoreStatus INACCESSIBLE = fromString("Inaccessible");

    /** Static value Attached for DatastoreStatus. */
    public static final DatastoreStatus ATTACHED = fromString("Attached");

    /** Static value Detached for DatastoreStatus. */
    public static final DatastoreStatus DETACHED = fromString("Detached");

    /** Static value LostCommunication for DatastoreStatus. */
    public static final DatastoreStatus LOST_COMMUNICATION = fromString("LostCommunication");

    /** Static value DeadOrError for DatastoreStatus. */
    public static final DatastoreStatus DEAD_OR_ERROR = fromString("DeadOrError");

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

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

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