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 Details

  • Method Details

    • getBatchItems

      public List<RouteDirectionsBatchItem> getBatchItems()
      Get the batchItems property: Array containing the batch results.
      Returns:
      the batchItems value.
    • getBatchId

      public String getBatchId()
      Get the batch id of this request.
      Returns:
      the batch id
    • setBatchId

      public void setBatchId(String batchId)
      Sets the matrix id for this request.
      Parameters:
      batchId - the bach id for this request.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.