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>

public final class RouteDirectionsBatchItem extends BatchResultItem
An item returned from Route Directions Batch service call.
  • Constructor Details

    • RouteDirectionsBatchItem

      public RouteDirectionsBatchItem()
      Creates an instance of RouteDirectionsBatchItem class.
  • Method Details

    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchResultItem>
      Overrides:
      toJson in class BatchResultItem
      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 the ResponseError in case of an error response.
      Returns:
      the error detail as a ResponseError
    • getRouteDirections

      public RouteDirections getRouteDirections()
      Returns the RouteDirections associated with the response.
      Returns:
      the route directions as a RouteDirections