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

package com.azure.media.videoanalyzer.edge.models;

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

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

    /** Static value H264 for VideoEncoding. */
    public static final VideoEncoding H264 = fromString("H264");

    /** Static value MPEG4 for VideoEncoding. */
    public static final VideoEncoding MPEG4 = fromString("MPEG4");

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

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