// 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 PointOfInterestExtendedPostalCodes. */
public final class PointOfInterestExtendedPostalCodes extends ExpandableStringEnum<PointOfInterestExtendedPostalCodes> {
    /** Static value POI for PointOfInterestExtendedPostalCodes. */
    public static final PointOfInterestExtendedPostalCodes POI = fromString("POI");

    /** Static value None for PointOfInterestExtendedPostalCodes. */
    public static final PointOfInterestExtendedPostalCodes NONE = fromString("None");

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

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