IndexDocumentsResult Class

  • java.lang.Object
    • com.azure.search.documents.models.IndexDocumentsResult

Implements

public final class IndexDocumentsResult
implements JsonSerializable<IndexDocumentsResult>

Response containing the status of operations for all documents in the indexing request.

Constructor Summary

Constructor Description
IndexDocumentsResult(List<IndexingResult> results)

Creates an instance of IndexDocumentsResult class.

Method Summary

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

Reads an instance of IndexDocumentsResult from the JsonReader.

List<IndexingResult> getResults()

Get the results property: The list of status information for each document in the indexing request.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

IndexDocumentsResult

public IndexDocumentsResult(List results)

Creates an instance of IndexDocumentsResult class.

Parameters:

results - the results value to set.

Method Details

fromJson

public static IndexDocumentsResult fromJson(JsonReader jsonReader)

Reads an instance of IndexDocumentsResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IndexDocumentsResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getResults

public List getResults()

Get the results property: The list of status information for each document in the indexing request.

Returns:

the results value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to