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

package com.azure.ai.metricsadvisor.implementation.models;

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

/** time mode. */
public final class TimeMode extends ExpandableStringEnum<TimeMode> {
    /** Static value AnomalyTime for TimeMode. */
    public static final TimeMode ANOMALY_TIME = fromString("AnomalyTime");

    /** Static value CreatedTime for TimeMode. */
    public static final TimeMode CREATED_TIME = fromString("CreatedTime");

    /** Static value ModifiedTime for TimeMode. */
    public static final TimeMode MODIFIED_TIME = fromString("ModifiedTime");

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

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

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