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

package com.azure.resourcemanager.storagecache.models;

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

/** List of AML file system health states. */
public final class AmlFilesystemHealthStateType extends ExpandableStringEnum<AmlFilesystemHealthStateType> {
    /** Static value Unavailable for AmlFilesystemHealthStateType. */
    public static final AmlFilesystemHealthStateType UNAVAILABLE = fromString("Unavailable");

    /** Static value Available for AmlFilesystemHealthStateType. */
    public static final AmlFilesystemHealthStateType AVAILABLE = fromString("Available");

    /** Static value Degraded for AmlFilesystemHealthStateType. */
    public static final AmlFilesystemHealthStateType DEGRADED = fromString("Degraded");

    /** Static value Transitioning for AmlFilesystemHealthStateType. */
    public static final AmlFilesystemHealthStateType TRANSITIONING = fromString("Transitioning");

    /** Static value Maintenance for AmlFilesystemHealthStateType. */
    public static final AmlFilesystemHealthStateType MAINTENANCE = fromString("Maintenance");

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

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

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