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

package com.azure.resourcemanager.machinelearning.models;

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

/** Configure STL Decomposition of the time-series target column. */
public final class UseStl extends ExpandableStringEnum<UseStl> {
    /** Static value None for UseStl. */
    public static final UseStl NONE = fromString("None");

    /** Static value Season for UseStl. */
    public static final UseStl SEASON = fromString("Season");

    /** Static value SeasonTrend for UseStl. */
    public static final UseStl SEASON_TREND = fromString("SeasonTrend");

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

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

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