GeocodingBatchResponseSummary Class

  • java.lang.Object
    • com.azure.maps.search.models.GeocodingBatchResponseSummary

Implements

public final class GeocodingBatchResponseSummary
implements JsonSerializable<GeocodingBatchResponseSummary>

Summary for the batch request.

Constructor Summary

Constructor Description
GeocodingBatchResponseSummary()

Creates an instance of GeocodingBatchResponseSummary class.

Method Summary

Modifier and Type Method and Description
static GeocodingBatchResponseSummary fromJson(JsonReader jsonReader)

Reads an instance of GeocodingBatchResponseSummary from the JsonReader.

Integer getSuccessfulRequests()

Get the successfulRequests property: Number of successful requests in the batch.

Integer getTotalRequests()

Get the totalRequests property: Total number of requests in the batch.

GeocodingBatchResponseSummary setSuccessfulRequests(Integer successfulRequests)

Set the successfulRequests property: Number of successful requests in the batch.

GeocodingBatchResponseSummary setTotalRequests(Integer totalRequests)

Set the totalRequests property: Total number of requests in the batch.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

GeocodingBatchResponseSummary

public GeocodingBatchResponseSummary()

Creates an instance of GeocodingBatchResponseSummary class.

Method Details

fromJson

public static GeocodingBatchResponseSummary fromJson(JsonReader jsonReader)

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.

getSuccessfulRequests

public Integer getSuccessfulRequests()

Get the successfulRequests property: Number of successful requests in the batch.

Returns:

the successfulRequests value.

getTotalRequests

public Integer getTotalRequests()

Get the totalRequests property: Total number of requests in the batch.

Returns:

the totalRequests value.

setSuccessfulRequests

public GeocodingBatchResponseSummary setSuccessfulRequests(Integer successfulRequests)

Set the successfulRequests property: Number of successful requests in the batch.

Parameters:

successfulRequests - the successfulRequests value to set.

Returns:

the GeocodingBatchResponseSummary object itself.

setTotalRequests

public GeocodingBatchResponseSummary setTotalRequests(Integer totalRequests)

Set the totalRequests property: Total number of requests in the batch.

Parameters:

totalRequests - the totalRequests value to set.

Returns:

the GeocodingBatchResponseSummary object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to