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

package com.azure.ai.translation.text.models;

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

/** Defines values for TextType. */
public final class TextType extends ExpandableStringEnum<TextType> {
    /** Static value plain for TextType. */
    public static final TextType PLAIN = fromString("plain");

    /** Static value html for TextType. */
    public static final TextType HTML = fromString("html");

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

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

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