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

package com.azure.maps.route.models;

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

/** Defines values for AlternativeRouteType. */
public final class AlternativeRouteType extends ExpandableStringEnum<AlternativeRouteType> {
    /** Static value anyRoute for AlternativeRouteType. */
    public static final AlternativeRouteType ANY_ROUTE = fromString("anyRoute");

    /** Static value betterRoute for AlternativeRouteType. */
    public static final AlternativeRouteType BETTER_ROUTE = fromString("betterRoute");

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

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