// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

package com.azure.search.documents.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/** Enables a debugging tool that can be used to further explore your search results. */
public final class QueryDebugMode extends ExpandableStringEnum<QueryDebugMode> {
    /** No query debugging information will be returned. */
    public static final QueryDebugMode DISABLED = fromString("disabled");

    /** Allows the user to further explore their Semantic search results. */
    public static final QueryDebugMode SEMANTIC = fromString("semantic");

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

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

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