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

/** Scope for this rule. The scope and filter determine which clients match the rule. */
public final class NfsAccessRuleScope extends ExpandableStringEnum<NfsAccessRuleScope> {
    /** Static value default for NfsAccessRuleScope. */
    public static final NfsAccessRuleScope DEFAULT = fromString("default");

    /** Static value network for NfsAccessRuleScope. */
    public static final NfsAccessRuleScope NETWORK = fromString("network");

    /** Static value host for NfsAccessRuleScope. */
    public static final NfsAccessRuleScope HOST = fromString("host");

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

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

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