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

package com.azure.resourcemanager.resourcehealth.models;

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

/** Level of event. */
public final class EventLevelValues extends ExpandableStringEnum<EventLevelValues> {
    /** Static value Critical for EventLevelValues. */
    public static final EventLevelValues CRITICAL = fromString("Critical");

    /** Static value Error for EventLevelValues. */
    public static final EventLevelValues ERROR = fromString("Error");

    /** Static value Warning for EventLevelValues. */
    public static final EventLevelValues WARNING = fromString("Warning");

    /** Static value Informational for EventLevelValues. */
    public static final EventLevelValues INFORMATIONAL = fromString("Informational");

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

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

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