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

    /** Static value all for ComputeTravelTime. */
    public static final ComputeTravelTime ALL = fromString("all");

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

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