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

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

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

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

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

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

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

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

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

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