Package com.azure.maps.route.models
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>
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final DelayMagnitudeMajor.static final DelayMagnitudeMinor.static final DelayMagnitudeModerate.static final DelayMagnitudeUndefined, used for road closures and other indefinite delays.static final DelayMagnitudeUnknown. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DelayMagnitudefromString(String name) Creates or finds a DelayMagnitude from its string representation.static Collection<DelayMagnitude> values()Gets known DelayMagnitude values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
UNKNOWN
Unknown. -
MINOR
Minor. -
MODERATE
Moderate. -
MAJOR
Major. -
UNDEFINED
Undefined, used for road closures and other indefinite delays.
-
-
Constructor Details
-
DelayMagnitude
Deprecated.Use thefromString(String)factory method.Creates a new instance of DelayMagnitude value.
-
-
Method Details
-
fromString
Creates or finds a DelayMagnitude from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding DelayMagnitude.
-
values
Gets known DelayMagnitude values.- Returns:
- known DelayMagnitude values.
-
fromString(String)factory method.