Class IndexDocumentsResult

java.lang.Object
com.azure.search.documents.models.IndexDocumentsResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<IndexDocumentsResult>

public final class IndexDocumentsResult extends Object implements com.azure.json.JsonSerializable<IndexDocumentsResult>
Response containing the status of operations for all documents in the indexing request.
  • Constructor Details

    • IndexDocumentsResult

      public IndexDocumentsResult(List<IndexingResult> results)
      Creates an instance of IndexDocumentsResult class.
      Parameters:
      results - the results value to set.
  • Method Details

    • getResults

      public List<IndexingResult> getResults()
      Get the results property: The list of status information for each document in the indexing request.
      Returns:
      the results value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<IndexDocumentsResult>
      Throws:
      IOException
    • fromJson

      public static IndexDocumentsResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the IndexDocumentsResult.