你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DataChangeDetectionPolicy Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.DataChangeDetectionPolicy

Implements

public class DataChangeDetectionPolicy
implements JsonSerializable<DataChangeDetectionPolicy>

Base type for data change detection policies.

Constructor Summary

Constructor Description
DataChangeDetectionPolicy()

Creates an instance of DataChangeDetectionPolicy class.

Method Summary

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

Reads an instance of DataChangeDetectionPolicy from the JsonReader.

String getOdataType()

Get the odataType property: A URI fragment specifying the type of data change detection policy.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

DataChangeDetectionPolicy

public DataChangeDetectionPolicy()

Creates an instance of DataChangeDetectionPolicy class.

Method Details

fromJson

public static DataChangeDetectionPolicy fromJson(JsonReader jsonReader)

Reads an instance of DataChangeDetectionPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataChangeDetectionPolicy 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 DataChangeDetectionPolicy.

getOdataType

public String getOdataType()

Get the odataType property: A URI fragment specifying the type of data change detection policy.

Returns:

the odataType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to