/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
 * Defines values for EnvironmentType.
 */
public final class EnvironmentType extends ExpandableStringEnum<EnvironmentType> {
    /** Static value Prod for EnvironmentType. */
    public static final EnvironmentType PROD = fromString("Prod");

    /** Static value Test for EnvironmentType. */
    public static final EnvironmentType TEST = fromString("Test");

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

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