-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SocketAddressMatchCondition.cs
53 lines (47 loc) · 2.59 KB
/
SocketAddressMatchCondition.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Cdn.Models
{
/// <summary> Defines the parameters for SocketAddress match conditions. </summary>
public partial class SocketAddressMatchCondition
{
/// <summary> Initializes a new instance of SocketAddressMatchCondition. </summary>
/// <param name="conditionType"></param>
/// <param name="socketAddressOperator"> Describes operator to be matched. </param>
public SocketAddressMatchCondition(SocketAddressMatchConditionType conditionType, SocketAddressOperator socketAddressOperator)
{
ConditionType = conditionType;
SocketAddressOperator = socketAddressOperator;
MatchValues = new ChangeTrackingList<string>();
Transforms = new ChangeTrackingList<PreTransformCategory>();
}
/// <summary> Initializes a new instance of SocketAddressMatchCondition. </summary>
/// <param name="conditionType"></param>
/// <param name="socketAddressOperator"> Describes operator to be matched. </param>
/// <param name="negateCondition"> Describes if this is negate condition or not. </param>
/// <param name="matchValues"> The match value for the condition of the delivery rule. </param>
/// <param name="transforms"> List of transforms. </param>
internal SocketAddressMatchCondition(SocketAddressMatchConditionType conditionType, SocketAddressOperator socketAddressOperator, bool? negateCondition, IList<string> matchValues, IList<PreTransformCategory> transforms)
{
ConditionType = conditionType;
SocketAddressOperator = socketAddressOperator;
NegateCondition = negateCondition;
MatchValues = matchValues;
Transforms = transforms;
}
/// <summary> Gets or sets the condition type. </summary>
public SocketAddressMatchConditionType ConditionType { get; set; }
/// <summary> Describes operator to be matched. </summary>
public SocketAddressOperator SocketAddressOperator { get; set; }
/// <summary> Describes if this is negate condition or not. </summary>
public bool? NegateCondition { get; set; }
/// <summary> The match value for the condition of the delivery rule. </summary>
public IList<string> MatchValues { get; }
/// <summary> List of transforms. </summary>
public IList<PreTransformCategory> Transforms { get; }
}
}