// 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 media type of the larger timestamp of two fragments compared. */
public final class LiveEventStreamEventMaxTimeMediaType
    extends ExpandableStringEnum<LiveEventStreamEventMaxTimeMediaType> {
    /** Static value Audio for LiveEventStreamEventMaxTimeMediaType. */
    public static final LiveEventStreamEventMaxTimeMediaType AUDIO = fromString("Audio");

    /** Static value Video for LiveEventStreamEventMaxTimeMediaType. */
    public static final LiveEventStreamEventMaxTimeMediaType VIDEO = fromString("Video");

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

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

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