Class DelayMagnitude

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

public final class DelayMagnitude extends com.azure.core.util.ExpandableStringEnum<DelayMagnitude>
The magnitude of delay caused by the incident. These values correspond to the values of the response field ty of the [Get Traffic Incident Detail API](https://docs.microsoft.com/rest/api/maps/traffic/gettrafficincidentdetail).
  • Field Details

    • UNKNOWN

      public static final DelayMagnitude UNKNOWN
      Unknown.
    • MINOR

      public static final DelayMagnitude MINOR
      Minor.
    • MODERATE

      public static final DelayMagnitude MODERATE
      Moderate.
    • MAJOR

      public static final DelayMagnitude MAJOR
      Major.
    • UNDEFINED

      public static final DelayMagnitude UNDEFINED
      Undefined, used for road closures and other indefinite delays.
  • Constructor Details

    • DelayMagnitude

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

    • fromString

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

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