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 Summary
Constructors Constructor Description IndexAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexActionType
getActionType()
Get the actionType property: The operation to perform on a document in an indexing batch.T
getDocument()
Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.IndexAction<T>
setActionType(IndexActionType actionType)
Set the actionType property: The operation to perform on a document in an indexing batch.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.
-
-
-
Method Detail
-
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. Possible values include: 'Upload', 'Merge', 'MergeOrUpload', 'Delete'.- 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. Possible values include: 'Upload', 'Merge', 'MergeOrUpload', 'Delete'.- Parameters:
actionType
- the actionType value to set.- Returns:
- the IndexAction object itself.
-
-