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

package com.azure.resourcemanager.streamanalytics.models;

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

/** Defines values for EventSerializationType. */
public final class EventSerializationType extends ExpandableStringEnum<EventSerializationType> {
    /** Static value Csv for EventSerializationType. */
    public static final EventSerializationType CSV = fromString("Csv");

    /** Static value Avro for EventSerializationType. */
    public static final EventSerializationType AVRO = fromString("Avro");

    /** Static value Json for EventSerializationType. */
    public static final EventSerializationType JSON = fromString("Json");

    /** Static value Parquet for EventSerializationType. */
    public static final EventSerializationType PARQUET = fromString("Parquet");

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

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