HighWaterMarkChangeDetectionPolicy.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.
  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Fluent;
  9. import com.fasterxml.jackson.annotation.JsonCreator;
  10. import com.fasterxml.jackson.annotation.JsonProperty;
  11. import com.fasterxml.jackson.annotation.JsonTypeId;
  12. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  13. import com.fasterxml.jackson.annotation.JsonTypeName;

  14. /** Defines a data change detection policy that captures changes based on the value of a high water mark column. */
  15. @JsonTypeInfo(
  16.         use = JsonTypeInfo.Id.NAME,
  17.         include = JsonTypeInfo.As.EXISTING_PROPERTY,
  18.         property = "@odata.type",
  19.         visible = true)
  20. @JsonTypeName("#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy")
  21. @Fluent
  22. public final class HighWaterMarkChangeDetectionPolicy extends DataChangeDetectionPolicy {

  23.     /*
  24.      * Identifies the concrete type of the data change detection policy.
  25.      */
  26.     @JsonTypeId
  27.     @JsonProperty(value = "@odata.type", required = true)
  28.     private String odataType = "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy";

  29.     /*
  30.      * The name of the high water mark column.
  31.      */
  32.     @JsonProperty(value = "highWaterMarkColumnName", required = true)
  33.     private String highWaterMarkColumnName;

  34.     /**
  35.      * Creates an instance of HighWaterMarkChangeDetectionPolicy class.
  36.      *
  37.      * @param highWaterMarkColumnName the highWaterMarkColumnName value to set.
  38.      */
  39.     @JsonCreator
  40.     public HighWaterMarkChangeDetectionPolicy(
  41.             @JsonProperty(value = "highWaterMarkColumnName", required = true) String highWaterMarkColumnName) {
  42.         this.highWaterMarkColumnName = highWaterMarkColumnName;
  43.     }

  44.     /**
  45.      * Get the highWaterMarkColumnName property: The name of the high water mark column.
  46.      *
  47.      * @return the highWaterMarkColumnName value.
  48.      */
  49.     public String getHighWaterMarkColumnName() {
  50.         return this.highWaterMarkColumnName;
  51.     }
  52. }