// 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 type of AttributeFilter to apply to the TrackAttribute in order to select the tracks. */
public final class AttributeFilter extends ExpandableStringEnum<AttributeFilter> {
    /** Static value All for AttributeFilter. */
    public static final AttributeFilter ALL = fromString("All");

    /** Static value Top for AttributeFilter. */
    public static final AttributeFilter TOP = fromString("Top");

    /** Static value Bottom for AttributeFilter. */
    public static final AttributeFilter BOTTOM = fromString("Bottom");

    /** Static value ValueEquals for AttributeFilter. */
    public static final AttributeFilter VALUE_EQUALS = fromString("ValueEquals");

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

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

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