-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
HighWaterMarkChangeDetectionPolicy.cs
39 lines (32 loc) · 1.86 KB
/
HighWaterMarkChangeDetectionPolicy.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.Search.Documents.Indexes.Models
{
/// <summary> Defines a data change detection policy that captures changes based on the value of a high water mark column. </summary>
public partial class HighWaterMarkChangeDetectionPolicy : DataChangeDetectionPolicy
{
/// <summary> Initializes a new instance of <see cref="HighWaterMarkChangeDetectionPolicy"/>. </summary>
/// <param name="highWaterMarkColumnName"> The name of the high water mark column. </param>
/// <exception cref="ArgumentNullException"> <paramref name="highWaterMarkColumnName"/> is null. </exception>
public HighWaterMarkChangeDetectionPolicy(string highWaterMarkColumnName)
{
Argument.AssertNotNull(highWaterMarkColumnName, nameof(highWaterMarkColumnName));
HighWaterMarkColumnName = highWaterMarkColumnName;
ODataType = "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy";
}
/// <summary> Initializes a new instance of <see cref="HighWaterMarkChangeDetectionPolicy"/>. </summary>
/// <param name="oDataType"> A URI fragment specifying the type of data change detection policy. </param>
/// <param name="highWaterMarkColumnName"> The name of the high water mark column. </param>
internal HighWaterMarkChangeDetectionPolicy(string oDataType, string highWaterMarkColumnName) : base(oDataType)
{
HighWaterMarkColumnName = highWaterMarkColumnName;
ODataType = oDataType ?? "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy";
}
/// <summary> The name of the high water mark column. </summary>
public string HighWaterMarkColumnName { get; set; }
}
}