Package com.azure.maps.search.models
Class GeocodingBatchRequestBody
java.lang.Object
com.azure.maps.search.models.GeocodingBatchRequestBody
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GeocodingBatchRequestBody>
public final class GeocodingBatchRequestBody
extends Object
implements com.azure.json.JsonSerializable<GeocodingBatchRequestBody>
The list of address geocoding queries/requests to process. The list can contain a max of 100 queries and must contain
at least 1 query.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GeocodingBatchRequestBody class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeocodingBatchRequestBodyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GeocodingBatchRequestBody from the JsonReader.List<com.azure.maps.search.implementation.models.GeocodingBatchRequestItem> Get the batchItems property: The list of queries to process.setBatchItems(List<com.azure.maps.search.implementation.models.GeocodingBatchRequestItem> batchItems) Set the batchItems property: The list of queries to process.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
-
GeocodingBatchRequestBody
public GeocodingBatchRequestBody()Creates an instance of GeocodingBatchRequestBody class.
-
-
Method Details
-
getBatchItems
Get the batchItems property: The list of queries to process.- Returns:
- the batchItems value.
-
setBatchItems
public GeocodingBatchRequestBody setBatchItems(List<com.azure.maps.search.implementation.models.GeocodingBatchRequestItem> batchItems) Set the batchItems property: The list of queries to process.- Parameters:
batchItems- the batchItems value to set.- Returns:
- the GeocodingBatchRequestBody object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GeocodingBatchRequestBody>- Throws:
IOException
-
fromJson
public static GeocodingBatchRequestBody fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GeocodingBatchRequestBody from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GeocodingBatchRequestBody 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 GeocodingBatchRequestBody.
-