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

package com.azure.resourcemanager.cdn.models;

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

/** Describes operator to be matched. */
public final class ServerPortOperator extends ExpandableStringEnum<ServerPortOperator> {
    /** Static value Any for ServerPortOperator. */
    public static final ServerPortOperator ANY = fromString("Any");

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

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

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

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

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

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

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

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

    /** Static value RegEx for ServerPortOperator. */
    public static final ServerPortOperator REG_EX = fromString("RegEx");

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

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