Class ReverseGeocodingBatchRequestBody

java.lang.Object
com.azure.maps.search.models.ReverseGeocodingBatchRequestBody
All Implemented Interfaces:
com.azure.json.JsonSerializable<ReverseGeocodingBatchRequestBody>

public final class ReverseGeocodingBatchRequestBody extends Object implements com.azure.json.JsonSerializable<ReverseGeocodingBatchRequestBody>
The list of reverse geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ReverseGeocodingBatchRequestBody class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ReverseGeocodingBatchRequestBody from the JsonReader.
    List<com.azure.maps.search.implementation.models.ReverseGeocodingBatchRequestItem>
    Get the batchItems property: The list of queries to process.
    setBatchItems(List<com.azure.maps.search.implementation.models.ReverseGeocodingBatchRequestItem> batchItems)
    Set the batchItems property: The list of queries to process.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ReverseGeocodingBatchRequestBody

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

    • getBatchItems

      public List<com.azure.maps.search.implementation.models.ReverseGeocodingBatchRequestItem> getBatchItems()
      Get the batchItems property: The list of queries to process.
      Returns:
      the batchItems value.
    • setBatchItems

      public ReverseGeocodingBatchRequestBody setBatchItems(List<com.azure.maps.search.implementation.models.ReverseGeocodingBatchRequestItem> batchItems)
      Set the batchItems property: The list of queries to process.
      Parameters:
      batchItems - the batchItems value to set.
      Returns:
      the ReverseGeocodingBatchRequestBody object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ReverseGeocodingBatchRequestBody>
      Throws:
      IOException
    • fromJson

      public static ReverseGeocodingBatchRequestBody fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ReverseGeocodingBatchRequestBody from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ReverseGeocodingBatchRequestBody 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 ReverseGeocodingBatchRequestBody.