次の方法で共有


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