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

package com.azure.resourcemanager.alertsmanagement.models;

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

/** Operator for a given condition. */
public final class Operator extends ExpandableStringEnum<Operator> {
    /** Static value Equals for Operator. */
    public static final Operator EQUALS = fromString("Equals");

    /** Static value NotEquals for Operator. */
    public static final Operator NOT_EQUALS = fromString("NotEquals");

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

    /** Static value DoesNotContain for Operator. */
    public static final Operator DOES_NOT_CONTAIN = fromString("DoesNotContain");

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

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