// 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;

/** Learning rate scheduler enum. */
public final class LearningRateScheduler extends ExpandableStringEnum<LearningRateScheduler> {
    /** Static value None for LearningRateScheduler. */
    public static final LearningRateScheduler NONE = fromString("None");

    /** Static value WarmupCosine for LearningRateScheduler. */
    public static final LearningRateScheduler WARMUP_COSINE = fromString("WarmupCosine");

    /** Static value Step for LearningRateScheduler. */
    public static final LearningRateScheduler STEP = fromString("Step");

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

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

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