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

package com.azure.resourcemanager.synapse.models;

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

/** Language extension that can run within KQL query. */
public final class LanguageExtensionName extends ExpandableStringEnum<LanguageExtensionName> {
    /** Static value PYTHON for LanguageExtensionName. */
    public static final LanguageExtensionName PYTHON = fromString("PYTHON");

    /** Static value R for LanguageExtensionName. */
    public static final LanguageExtensionName R = fromString("R");

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

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

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