Package com.azure.maps.route.models
Class RouteDelayReason
java.lang.Object
com.azure.core.util.ExpandableStringEnum<RouteDelayReason>
com.azure.maps.route.models.RouteDelayReason
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class RouteDelayReason
extends com.azure.core.util.ExpandableStringEnum<RouteDelayReason>
Type of the incident. Can currently be JAM, ROAD_WORK, ROAD_CLOSURE, or OTHER. See "tec" for detailed information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RouteDelayReasonTraffic jam.static final RouteDelayReasonOther.static final RouteDelayReasonRoad closure.static final RouteDelayReasonRoad work. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteDelayReasonfromString(String name) Creates or finds a SimpleCategory from its string representation.static Collection<RouteDelayReason> values()Gets known SimpleCategory values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
JAM
Traffic jam. -
ROAD_WORK
Road work. -
ROAD_CLOSURE
Road closure. -
OTHER
Other.
-
-
Constructor Details
-
RouteDelayReason
Deprecated.Use thefromString(String)factory method.Creates a new instance of SimpleCategory value.
-
-
Method Details
-
fromString
Creates or finds a SimpleCategory from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding SimpleCategory.
-
values
Gets known SimpleCategory values.- Returns:
- known SimpleCategory values.
-
fromString(String)factory method.