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

package com.azure.resourcemanager.network.models;

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

/** The operator to be matched. */
public final class WebApplicationFirewallOperator extends ExpandableStringEnum<WebApplicationFirewallOperator> {
    /** Static value IPMatch for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator IPMATCH = fromString("IPMatch");

    /** Static value Equal for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator EQUAL = fromString("Equal");

    /** Static value Contains for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator CONTAINS = fromString("Contains");

    /** Static value LessThan for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator LESS_THAN = fromString("LessThan");

    /** Static value GreaterThan for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator GREATER_THAN = fromString("GreaterThan");

    /** Static value LessThanOrEqual for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator LESS_THAN_OR_EQUAL = fromString("LessThanOrEqual");

    /** Static value GreaterThanOrEqual for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator GREATER_THAN_OR_EQUAL = fromString("GreaterThanOrEqual");

    /** Static value BeginsWith for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator BEGINS_WITH = fromString("BeginsWith");

    /** Static value EndsWith for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator ENDS_WITH = fromString("EndsWith");

    /** Static value Regex for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator REGEX = fromString("Regex");

    /** Static value GeoMatch for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator GEO_MATCH = fromString("GeoMatch");

    /** Static value Any for WebApplicationFirewallOperator. */
    public static final WebApplicationFirewallOperator ANY = fromString("Any");

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

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

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