IndexAction Class

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

Implements

public final class IndexAction
implements JsonSerializable<IndexAction>

Represents an index action that operates on a document.

Constructor Summary

Constructor Description
IndexAction()

Creates an instance of IndexAction class.

Method Summary

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

Reads an instance of IndexAction from the JsonReader.

IndexActionType getActionType()

Get the actionType property: The operation to perform on a document in an indexing batch.

Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: Represents an index action that operates on a document.

IndexAction setActionType(IndexActionType actionType)

Set the actionType property: The operation to perform on a document in an indexing batch.

IndexAction setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Represents an index action that operates on a document.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

IndexAction

public IndexAction()

Creates an instance of IndexAction class.

Method Details

fromJson

public static IndexAction fromJson(JsonReader jsonReader)

Reads an instance of IndexAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the IndexAction.

getActionType

public IndexActionType getActionType()

Get the actionType property: The operation to perform on a document in an indexing batch.

Returns:

the actionType value.

getAdditionalProperties

public Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: Represents an index action that operates on a document.

Returns:

the additionalProperties value.

setActionType

public IndexAction 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.

setAdditionalProperties

public IndexAction setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Represents an index action that operates on a document.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the IndexAction object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to