Class IndexAction<T>

java.lang.Object
com.azure.search.documents.models.IndexAction<T>

public final class IndexAction<T> extends Object
Represents an index action that operates on a document.
  • Constructor Details

    • IndexAction

      public IndexAction()
  • Method Details

    • getDocument

      public T getDocument()
      Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.
      Returns:
      the document value.
    • setDocument

      public IndexAction<T> setDocument(T document)
      Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.
      Parameters:
      document - the document value to set.
      Returns:
      the IndexAction object itself.
    • getActionType

      public IndexActionType getActionType()
      Get the actionType property: The operation to perform on a document in an indexing batch.
      Returns:
      the actionType value.
    • setActionType

      public IndexAction<T> setActionType(IndexActionType actionType)
      Set the actionType property: The operation to perform on a document in an indexing batch.
      Parameters:
      actionType - the actionType value to set.
      Returns:
      the IndexAction object itself.