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

package com.azure.maps.search.models;

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

/** The type of query being returned: NEARBY or NON_NEAR. */
public final class QueryType extends ExpandableStringEnum<QueryType> {
    /** Static value NEARBY for QueryType. */
    public static final QueryType NEARBY = fromString("NEARBY");

    /** Static value NON_NEAR for QueryType. */
    public static final QueryType GLOBAL = fromString("NON_NEAR");

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

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