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

package com.azure.resourcemanager.consumption.models;

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

/** Defines values for ThresholdType. */
public final class ThresholdType extends ExpandableStringEnum<ThresholdType> {
    /** Static value Actual for ThresholdType. */
    public static final ThresholdType ACTUAL = fromString("Actual");

    /** Static value Forecasted for ThresholdType. */
    public static final ThresholdType FORECASTED = fromString("Forecasted");

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

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