Package com.azure.maps.route.models
Class RouteDirectionsBatchResult
java.lang.Object
com.azure.maps.route.models.RouteDirectionsBatchResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteDirectionsBatchResult>
public class RouteDirectionsBatchResult
extends Object
implements com.azure.json.JsonSerializable<RouteDirectionsBatchResult>
Route Directions Batch Result
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteDirectionsBatchResultfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteDirectionsBatchResult from the JsonReader.Get the batch id of this request.Get the batchItems property: Array containing the batch results.voidsetBatchId(String batchId) Sets the matrix id for this request.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods 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
-
RouteDirectionsBatchResult
public RouteDirectionsBatchResult()Creates a new instance ofRouteDirectionsBatchResult.
-
-
Method Details
-
getBatchItems
Get the batchItems property: Array containing the batch results.- Returns:
- the batchItems value.
-
getBatchId
Get the batch id of this request.- Returns:
- the batch id
-
setBatchId
Sets the matrix id for this request.- Parameters:
batchId- the bach id for this request.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteDirectionsBatchResult>- Throws:
IOException
-
fromJson
public static RouteDirectionsBatchResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RouteDirectionsBatchResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteDirectionsBatchResult 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 RouteDirectionsBatchResult.
-