// 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.administration.models;

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

/** Defines values for AnomalyDetectorDirection. */
public final class AnomalyDetectorDirection extends ExpandableStringEnum<AnomalyDetectorDirection> {
    /** Static value Both for AnomalyDetectorDirection. */
    public static final AnomalyDetectorDirection BOTH = fromString("Both");

    /** Static value Down for AnomalyDetectorDirection. */
    public static final AnomalyDetectorDirection DOWN = fromString("Down");

    /** Static value Up for AnomalyDetectorDirection. */
    public static final AnomalyDetectorDirection UP = fromString("Up");

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

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