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

package com.azure.resourcemanager.storagemover.models;

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

/** The NFS protocol version. */
public final class NfsVersion extends ExpandableStringEnum<NfsVersion> {
    /** Static value NFSauto for NfsVersion. */
    public static final NfsVersion NFSAUTO = fromString("NFSauto");

    /** Static value NFSv3 for NfsVersion. */
    public static final NfsVersion NFSV3 = fromString("NFSv3");

    /** Static value NFSv4 for NfsVersion. */
    public static final NfsVersion NFSV4 = fromString("NFSv4");

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

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

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