Package com.azure.maps.search.models
Class GeocodingBatchResponse
java.lang.Object
com.azure.maps.search.models.GeocodingBatchResponse
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GeocodingBatchResponse>
public final class GeocodingBatchResponse
extends Object
implements com.azure.json.JsonSerializable<GeocodingBatchResponse>
This object is returned from a successful Geocoding Batch service call.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GeocodingBatchResponse class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeocodingBatchResponsefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GeocodingBatchResponse from the JsonReader.List<com.azure.maps.search.implementation.models.GeocodingBatchResponseItem> Get the batchItems property: Array containing the batch results.Get the nextLink property: The is the link to the next page of the features returned.Get the summary property: Summary for the batch request.setBatchItems(List<com.azure.maps.search.implementation.models.GeocodingBatchResponseItem> batchItems) Set the batchItems property: Array containing the batch results.setNextLink(String nextLink) Set the nextLink property: The is the link to the next page of the features returned.setSummary(GeocodingBatchResponseSummary summary) Set the summary property: Summary for the batch 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
-
GeocodingBatchResponse
public GeocodingBatchResponse()Creates an instance of GeocodingBatchResponse class.
-
-
Method Details
-
getSummary
Get the summary property: Summary for the batch request.- Returns:
- the summary value.
-
setSummary
Set the summary property: Summary for the batch request.- Parameters:
summary- the summary value to set.- Returns:
- the GeocodingBatchResponse object itself.
-
getBatchItems
Get the batchItems property: Array containing the batch results.- Returns:
- the batchItems value.
-
setBatchItems
public GeocodingBatchResponse setBatchItems(List<com.azure.maps.search.implementation.models.GeocodingBatchResponseItem> batchItems) Set the batchItems property: Array containing the batch results.- Parameters:
batchItems- the batchItems value to set.- Returns:
- the GeocodingBatchResponse object itself.
-
getNextLink
Get the nextLink property: The is the link to the next page of the features returned. If it's the last page, no this field.- Returns:
- the nextLink value.
-
setNextLink
Set the nextLink property: The is the link to the next page of the features returned. If it's the last page, no this field.- Parameters:
nextLink- the nextLink value to set.- Returns:
- the GeocodingBatchResponse object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GeocodingBatchResponse>- Throws:
IOException
-
fromJson
public static GeocodingBatchResponse fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GeocodingBatchResponse from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GeocodingBatchResponse 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 GeocodingBatchResponse.
-