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

package com.azure.communication.jobrouter.implementation.models;

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

/** The expression language to compile to and execute. */
public final class ExpressionRouterRuleLanguageInternal
        extends ExpandableStringEnum<ExpressionRouterRuleLanguageInternal> {
    /** Static value powerFx for ExpressionRouterRuleLanguageInternal. */
    public static final ExpressionRouterRuleLanguageInternal POWER_FX = fromString("powerFx");

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

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

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