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

package com.azure.resourcemanager.servicefabric.models;

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

/** The level of notification. */
public final class NotificationLevel extends ExpandableStringEnum<NotificationLevel> {
    /** Static value Critical for NotificationLevel. */
    public static final NotificationLevel CRITICAL = fromString("Critical");

    /** Static value All for NotificationLevel. */
    public static final NotificationLevel ALL = fromString("All");

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

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

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