// 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 entry point. Value can be either _main_ or _minor_. */
public final class EntryPointType extends ExpandableStringEnum<EntryPointType> {
    /** Static value main for EntryPointType. */
    public static final EntryPointType MAIN = fromString("main");

    /** Static value minor for EntryPointType. */
    public static final EntryPointType MINOR = fromString("minor");

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

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