// 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 video rate control mode. */
public final class H264RateControlMode extends ExpandableStringEnum<H264RateControlMode> {
    /** Static value ABR for H264RateControlMode. */
    public static final H264RateControlMode ABR = fromString("ABR");

    /** Static value CBR for H264RateControlMode. */
    public static final H264RateControlMode CBR = fromString("CBR");

    /** Static value CRF for H264RateControlMode. */
    public static final H264RateControlMode CRF = fromString("CRF");

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

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

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