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

package com.azure.resourcemanager.devhub.models;

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

/** The programming language used. */
public final class GenerationLanguage extends ExpandableStringEnum<GenerationLanguage> {
    /** Static value clojure for GenerationLanguage. */
    public static final GenerationLanguage CLOJURE = fromString("clojure");

    /** Static value csharp for GenerationLanguage. */
    public static final GenerationLanguage CSHARP = fromString("csharp");

    /** Static value erlang for GenerationLanguage. */
    public static final GenerationLanguage ERLANG = fromString("erlang");

    /** Static value go for GenerationLanguage. */
    public static final GenerationLanguage GO = fromString("go");

    /** Static value gomodule for GenerationLanguage. */
    public static final GenerationLanguage GOMODULE = fromString("gomodule");

    /** Static value gradle for GenerationLanguage. */
    public static final GenerationLanguage GRADLE = fromString("gradle");

    /** Static value java for GenerationLanguage. */
    public static final GenerationLanguage JAVA = fromString("java");

    /** Static value javascript for GenerationLanguage. */
    public static final GenerationLanguage JAVASCRIPT = fromString("javascript");

    /** Static value php for GenerationLanguage. */
    public static final GenerationLanguage PHP = fromString("php");

    /** Static value python for GenerationLanguage. */
    public static final GenerationLanguage PYTHON = fromString("python");

    /** Static value ruby for GenerationLanguage. */
    public static final GenerationLanguage RUBY = fromString("ruby");

    /** Static value rust for GenerationLanguage. */
    public static final GenerationLanguage RUST = fromString("rust");

    /** Static value swift for GenerationLanguage. */
    public static final GenerationLanguage SWIFT = fromString("swift");

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

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

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