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

    /** Static value shortest for RouteType. */
    public static final RouteType SHORTEST = fromString("shortest");

    /** Static value eco for RouteType. */
    public static final RouteType ECONOMY = fromString("eco");

    /** Static value thrilling for RouteType. */
    public static final RouteType THRILLING = fromString("thrilling");

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

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