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

package com.azure.resourcemanager.authorization.models;

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

/** The type of notification. */
public final class NotificationDeliveryMechanism extends ExpandableStringEnum<NotificationDeliveryMechanism> {
    /** Static value Email for NotificationDeliveryMechanism. */
    public static final NotificationDeliveryMechanism EMAIL = fromString("Email");

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

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