| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.Search.Documents.Indexes.Models |
| | 11 | | { |
| | 12 | | /// <summary> Defines a data change detection policy that captures changes based on the value of a high water mark c |
| | 13 | | public partial class HighWaterMarkChangeDetectionPolicy : DataChangeDetectionPolicy |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of HighWaterMarkChangeDetectionPolicy. </summary> |
| | 16 | | /// <param name="highWaterMarkColumnName"> The name of the high water mark column. </param> |
| | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="highWaterMarkColumnName"/> is null. </exception> |
| 0 | 18 | | public HighWaterMarkChangeDetectionPolicy(string highWaterMarkColumnName) |
| | 19 | | { |
| 0 | 20 | | if (highWaterMarkColumnName == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(highWaterMarkColumnName)); |
| | 23 | | } |
| | 24 | |
|
| 0 | 25 | | HighWaterMarkColumnName = highWaterMarkColumnName; |
| 0 | 26 | | ODataType = "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"; |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> Initializes a new instance of HighWaterMarkChangeDetectionPolicy. </summary> |
| | 30 | | /// <param name="oDataType"> Identifies the concrete type of the data change detection policy. </param> |
| | 31 | | /// <param name="highWaterMarkColumnName"> The name of the high water mark column. </param> |
| 0 | 32 | | internal HighWaterMarkChangeDetectionPolicy(string oDataType, string highWaterMarkColumnName) : base(oDataType) |
| | 33 | | { |
| 0 | 34 | | HighWaterMarkColumnName = highWaterMarkColumnName; |
| 0 | 35 | | ODataType = oDataType ?? "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"; |
| 0 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> The name of the high water mark column. </summary> |
| 0 | 39 | | public string HighWaterMarkColumnName { get; set; } |
| | 40 | | } |
| | 41 | | } |