Package com.azure.maps.search.models
Class GeocodingBatchResponseSummary
java.lang.Object
com.azure.maps.search.models.GeocodingBatchResponseSummary
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GeocodingBatchResponseSummary>
public final class GeocodingBatchResponseSummary
extends Object
implements com.azure.json.JsonSerializable<GeocodingBatchResponseSummary>
Summary for the batch request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GeocodingBatchResponseSummary class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GeocodingBatchResponseSummary from the JsonReader.Get the successfulRequests property: Number of successful requests in the batch.Get the totalRequests property: Total number of requests in the batch.setSuccessfulRequests(Integer successfulRequests) Set the successfulRequests property: Number of successful requests in the batch.setTotalRequests(Integer totalRequests) Set the totalRequests property: Total number of requests in the batch.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
-
GeocodingBatchResponseSummary
public GeocodingBatchResponseSummary()Creates an instance of GeocodingBatchResponseSummary class.
-
-
Method Details
-
getSuccessfulRequests
Get the successfulRequests property: Number of successful requests in the batch.- Returns:
- the successfulRequests value.
-
setSuccessfulRequests
Set the successfulRequests property: Number of successful requests in the batch.- Parameters:
successfulRequests- the successfulRequests value to set.- Returns:
- the GeocodingBatchResponseSummary object itself.
-
getTotalRequests
Get the totalRequests property: Total number of requests in the batch.- Returns:
- the totalRequests value.
-
setTotalRequests
Set the totalRequests property: Total number of requests in the batch.- Parameters:
totalRequests- the totalRequests value to set.- Returns:
- the GeocodingBatchResponseSummary object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GeocodingBatchResponseSummary>- Throws:
IOException
-
fromJson
public static GeocodingBatchResponseSummary fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GeocodingBatchResponseSummary from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GeocodingBatchResponseSummary 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 GeocodingBatchResponseSummary.
-