// 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;

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

    /** Static value Geo for SearchIndexes. */
    public static final SearchIndexes GEOGRAPHIES = fromString("Geo");

    /** Static value PAD for SearchIndexes. */
    public static final SearchIndexes POINT_ADDRESSES = fromString("PAD");

    /** Static value POI for SearchIndexes. */
    public static final SearchIndexes POINTS_OF_INTEREST = fromString("POI");

    /** Static value Str for SearchIndexes. */
    public static final SearchIndexes STREETS = fromString("Str");

    /** Static value Xstr for SearchIndexes. */
    public static final SearchIndexes CROSS_STREETS = fromString("Xstr");

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

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