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

package com.azure.resourcemanager.providerhub.models;

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

/** Defines values for NotificationMode. */
public final class NotificationMode extends ExpandableStringEnum<NotificationMode> {
    /** Static value NotSpecified for NotificationMode. */
    public static final NotificationMode NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value EventHub for NotificationMode. */
    public static final NotificationMode EVENT_HUB = fromString("EventHub");

    /** Static value WebHook for NotificationMode. */
    public static final NotificationMode WEB_HOOK = fromString("WebHook");

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

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

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