### YamlMime:JavaType uid: "com.azure.search.documents.models.IndexAction" fullName: "com.azure.search.documents.models.IndexAction" name: "IndexAction" nameWithType: "IndexAction" summary: "Represents an index action that operates on a document." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **IndexAction**" constructors: - uid: "com.azure.search.documents.models.IndexAction.IndexAction()" fullName: "com.azure.search.documents.models.IndexAction.IndexAction()" name: "IndexAction()" nameWithType: "IndexAction.IndexAction()" summary: "Creates an instance of ." syntax: "public IndexAction()" desc: "Creates an instance of ." methods: - uid: "com.azure.search.documents.models.IndexAction.getActionType()" fullName: "com.azure.search.documents.models.IndexAction.getActionType()" name: "getActionType()" nameWithType: "IndexAction.getActionType()" summary: "Get the actionType property: The operation to perform on a document in an indexing batch." syntax: "public IndexActionType getActionType()" desc: "Get the actionType property: The operation to perform on a document in an indexing batch." returns: description: "the actionType value." type: "" - uid: "com.azure.search.documents.models.IndexAction.getDocument()" fullName: "com.azure.search.documents.models.IndexAction.getDocument()" name: "getDocument()" nameWithType: "IndexAction.getDocument()" summary: "Get the document on which the action will be performed; Fields other than the key are ignored for delete actions." syntax: "public T getDocument()" desc: "Get the document on which the action will be performed; Fields other than the key are ignored for delete actions." returns: description: "the document value." type: "" - uid: "com.azure.search.documents.models.IndexAction.setActionType(com.azure.search.documents.models.IndexActionType)" fullName: "com.azure.search.documents.models.IndexAction.setActionType(IndexActionType actionType)" name: "setActionType(IndexActionType actionType)" nameWithType: "IndexAction.setActionType(IndexActionType actionType)" summary: "Set the actionType property: The operation to perform on a document in an indexing batch." parameters: - description: "the actionType value to set." name: "actionType" type: "" syntax: "public IndexAction setActionType(IndexActionType actionType)" desc: "Set the actionType property: The operation to perform on a document in an indexing batch." returns: description: "the IndexAction object itself." type: "<>" - uid: "com.azure.search.documents.models.IndexAction.setDocument(T)" fullName: "com.azure.search.documents.models.IndexAction.setDocument(T document)" name: "setDocument(T document)" nameWithType: "IndexAction.setDocument(T document)" summary: "Get the document on which the action will be performed; Fields other than the key are ignored for delete actions." parameters: - description: "the document value to set." name: "document" type: "" syntax: "public IndexAction setDocument(T document)" desc: "Get the document on which the action will be performed; Fields other than the key are ignored for delete actions." returns: description: "the IndexAction object itself." type: "<>" type: "class" typeParameters: - description: "The type of the document used in the indexing action." name: "T" desc: "Represents an index action that operates on a document." metadata: {} package: "com.azure.search.documents.models" artifact: com.azure:azure-search-documents:11.7.1