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

    /** Static value truck for ResponseTravelMode. */
    public static final RouteTravelMode TRUCK = fromString("truck");

    /** Static value taxi for ResponseTravelMode. */
    public static final RouteTravelMode TAXI = fromString("taxi");

    /** Static value bus for ResponseTravelMode. */
    public static final RouteTravelMode BUS = fromString("bus");

    /** Static value van for ResponseTravelMode. */
    public static final RouteTravelMode VAN = fromString("van");

    /** Static value motorcycle for ResponseTravelMode. */
    public static final RouteTravelMode MOTORCYCLE = fromString("motorcycle");

    /** Static value bicycle for ResponseTravelMode. */
    public static final RouteTravelMode BICYCLE = fromString("bicycle");

    /** Static value pedestrian for ResponseTravelMode. */
    public static final RouteTravelMode PEDESTRIAN = fromString("pedestrian");

    /** Static value other for ResponseTravelMode. */
    public static final RouteTravelMode OTHER = fromString("other");

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

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