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

package com.azure.resourcemanager.mediaservices.models;

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

/**
 * The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for
 * the profile and level.
 */
public final class EntropyMode extends ExpandableStringEnum<EntropyMode> {
    /** Static value Cabac for EntropyMode. */
    public static final EntropyMode CABAC = fromString("Cabac");

    /** Static value Cavlc for EntropyMode. */
    public static final EntropyMode CAVLC = fromString("Cavlc");

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

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

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