// 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;

/** Auto save settings. */
public final class Autosave extends ExpandableStringEnum<Autosave> {
    /** Static value None for Autosave. */
    public static final Autosave NONE = fromString("None");

    /** Static value Local for Autosave. */
    public static final Autosave LOCAL = fromString("Local");

    /** Static value Remote for Autosave. */
    public static final Autosave REMOTE = fromString("Remote");

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

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

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