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

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

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

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

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

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

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

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

    /** Static value other for ResponseTravelMode. */
    public static final ResponseTravelMode 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 ResponseTravelMode fromString(String name) {
        return fromString(name, ResponseTravelMode.class);
    }

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