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

/** Defines values for ActionEnum. */
public final class ActionEnum extends ExpandableStringEnum<ActionEnum> {
    /** Static value Allow for ActionEnum. */
    public static final ActionEnum ALLOW = fromString("Allow");

    /** Static value DenySilent for ActionEnum. */
    public static final ActionEnum DENY_SILENT = fromString("DenySilent");

    /** Static value DenyResetServer for ActionEnum. */
    public static final ActionEnum DENY_RESET_SERVER = fromString("DenyResetServer");

    /** Static value DenyResetBoth for ActionEnum. */
    public static final ActionEnum DENY_RESET_BOTH = fromString("DenyResetBoth");

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

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

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