// 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 CompressionType. */
public final class CompressionType extends ExpandableStringEnum<CompressionType> {
    /** Static value None for CompressionType. */
    public static final CompressionType NONE = fromString("None");

    /** Static value GZip for CompressionType. */
    public static final CompressionType GZIP = fromString("GZip");

    /** Static value Deflate for CompressionType. */
    public static final CompressionType DEFLATE = fromString("Deflate");

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

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