Package com.azure.maps.route.models
Class RouteDirectionsBatchItem
java.lang.Object
com.azure.maps.route.models.BatchResultItem
com.azure.maps.route.models.RouteDirectionsBatchItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchResultItem>
An item returned from Route Directions Batch service call.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RouteDirectionsBatchItem class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteDirectionsBatchItemfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteDirectionsBatchItem from the JsonReader.com.azure.core.models.ResponseErrorgetError()Returns theResponseErrorin case of an error response.Returns theRouteDirectionsassociated with the response.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.maps.route.models.BatchResultItem
getStatusCodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RouteDirectionsBatchItem
public RouteDirectionsBatchItem()Creates an instance of RouteDirectionsBatchItem class.
-
-
Method Details
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchResultItem>- Overrides:
toJsonin classBatchResultItem- Throws:
IOException
-
fromJson
public static RouteDirectionsBatchItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RouteDirectionsBatchItem from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteDirectionsBatchItem if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RouteDirectionsBatchItem.
-
getError
public com.azure.core.models.ResponseError getError()Returns theResponseErrorin case of an error response.- Returns:
- the error detail as a
ResponseError
-
getRouteDirections
Returns theRouteDirectionsassociated with the response.- Returns:
- the route directions as a
RouteDirections
-