Package com.azure.maps.route.models
Class RouteMatrixResult
java.lang.Object
com.azure.maps.route.models.RouteMatrixResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteMatrixResult>
public class RouteMatrixResult
extends Object
implements com.azure.json.JsonSerializable<RouteMatrixResult>
Route Matrix result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteMatrixResultfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteMatrixResult from the JsonReader.Get the formatVersion property: Format Version property.Get the matrix property: Results as a 2 dimensional array of route summaries.Get the matrix id of this request.Get the summary property: Summary object.voidsetMatrixId(String matrixId) 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
-
RouteMatrixResult
public RouteMatrixResult()Creates a new instance ofRouteMatrixResult.
-
-
Method Details
-
getFormatVersion
Get the formatVersion property: Format Version property.- Returns:
- the formatVersion value.
-
getMatrix
Get the matrix property: Results as a 2 dimensional array of route summaries.- Returns:
- the matrix value.
-
getSummary
Get the summary property: Summary object.- Returns:
- the summary value.
-
getMatrixId
Get the matrix id of this request.- Returns:
- the matrix id
-
setMatrixId
Sets the matrix id for this request.- Parameters:
matrixId- the matrix id
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteMatrixResult>- Throws:
IOException
-
fromJson
Reads an instance of RouteMatrixResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteMatrixResult 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 RouteMatrixResult.
-