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

package com.azure.resourcemanager.eventgrid.models;

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

/** The kind of event type used. */
public final class EventDefinitionKind extends ExpandableStringEnum<EventDefinitionKind> {
    /** Static value Inline for EventDefinitionKind. */
    public static final EventDefinitionKind INLINE = fromString("Inline");

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

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

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