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

/** Types of match for a reverse address search operation. */
public final class MatchType extends ExpandableStringEnum<MatchType> {
    /** Static value AddressPoint for MatchType. */
    public static final MatchType ADDRESS_POINT = fromString("AddressPoint");

    /** Static value HouseNumberRange for MatchType. */
    public static final MatchType HOUSE_NUMBER_RANGE = fromString("HouseNumberRange");

    /** Static value Street for MatchType. */
    public static final MatchType STREET = fromString("Street");

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

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