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

package com.azure.resourcemanager.paloaltonetworks.ngfw.models;

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

/** Type for Default Mode for rules creation. */
public final class DefaultMode extends ExpandableStringEnum<DefaultMode> {
    /** Static value IPS for DefaultMode. */
    public static final DefaultMode IPS = fromString("IPS");

    /** Static value FIREWALL for DefaultMode. */
    public static final DefaultMode FIREWALL = fromString("FIREWALL");

    /** Static value NONE for DefaultMode. */
    public static final DefaultMode NONE = fromString("NONE");

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

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

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