Class ComputeTravelTime

java.lang.Object
com.azure.core.util.ExpandableStringEnum<ComputeTravelTime>
com.azure.maps.route.models.ComputeTravelTime
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class ComputeTravelTime extends com.azure.core.util.ExpandableStringEnum<ComputeTravelTime>
Defines values for ComputeTravelTime.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ComputeTravelTime
    Computes travel times for all types of traffic information and specifies all results in the fields noTrafficTravelTimeInSeconds, historicTrafficTravelTimeInSeconds and liveTrafficIncidentsTravelTimeInSeconds being included in the summaries in the route response.
    static final ComputeTravelTime
    Does not compute additional travel times.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates or finds a ComputeTravelTime from its string representation.
    Gets known ComputeTravelTime values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • NONE

      public static final ComputeTravelTime NONE
      Does not compute additional travel times.
    • ALL

      public static final ComputeTravelTime ALL
      Computes travel times for all types of traffic information and specifies all results in the fields noTrafficTravelTimeInSeconds, historicTrafficTravelTimeInSeconds and liveTrafficIncidentsTravelTimeInSeconds being included in the summaries in the route response.
  • Constructor Details

    • ComputeTravelTime

      @Deprecated public ComputeTravelTime()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of ComputeTravelTime value.
  • Method Details

    • fromString

      public static ComputeTravelTime fromString(String name)
      Creates or finds a ComputeTravelTime from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding ComputeTravelTime.
    • values

      public static Collection<ComputeTravelTime> values()
      Gets known ComputeTravelTime values.
      Returns:
      known ComputeTravelTime values.