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

package com.azure.resourcemanager.webpubsub.models;

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

/** Defines values for EventListenerFilterDiscriminator. */
public final class EventListenerFilterDiscriminator extends ExpandableStringEnum<EventListenerFilterDiscriminator> {
    /** Static value EventName for EventListenerFilterDiscriminator. */
    public static final EventListenerFilterDiscriminator EVENT_NAME = fromString("EventName");

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

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

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