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

package com.azure.resourcemanager.machinelearning.models;

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

/** Mount state. */
public final class MountState extends ExpandableStringEnum<MountState> {
    /** Static value MountRequested for MountState. */
    public static final MountState MOUNT_REQUESTED = fromString("MountRequested");

    /** Static value Mounted for MountState. */
    public static final MountState MOUNTED = fromString("Mounted");

    /** Static value MountFailed for MountState. */
    public static final MountState MOUNT_FAILED = fromString("MountFailed");

    /** Static value UnmountRequested for MountState. */
    public static final MountState UNMOUNT_REQUESTED = fromString("UnmountRequested");

    /** Static value UnmountFailed for MountState. */
    public static final MountState UNMOUNT_FAILED = fromString("UnmountFailed");

    /** Static value Unmounted for MountState. */
    public static final MountState UNMOUNTED = fromString("Unmounted");

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

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

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