Class SqlIntegratedChangeTrackingPolicy

java.lang.Object
com.azure.search.documents.indexes.models.DataChangeDetectionPolicy
com.azure.search.documents.indexes.models.SqlIntegratedChangeTrackingPolicy
All Implemented Interfaces:
com.azure.json.JsonSerializable<DataChangeDetectionPolicy>

public final class SqlIntegratedChangeTrackingPolicy extends DataChangeDetectionPolicy
Defines a data change detection policy that captures changes using the Integrated Change Tracking feature of Azure SQL Database.
  • Constructor Details

    • SqlIntegratedChangeTrackingPolicy

      public SqlIntegratedChangeTrackingPolicy()
      Creates an instance of SqlIntegratedChangeTrackingPolicy class.
  • Method Details

    • getOdataType

      public String getOdataType()
      Get the odataType property: A URI fragment specifying the type of data change detection policy.
      Overrides:
      getOdataType in class DataChangeDetectionPolicy
      Returns:
      the odataType value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DataChangeDetectionPolicy>
      Overrides:
      toJson in class DataChangeDetectionPolicy
      Throws:
      IOException
    • fromJson

      public static SqlIntegratedChangeTrackingPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SqlIntegratedChangeTrackingPolicy from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SqlIntegratedChangeTrackingPolicy 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 SqlIntegratedChangeTrackingPolicy.