-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DevTestLabCostThreshold.cs
56 lines (50 loc) · 2.86 KB
/
DevTestLabCostThreshold.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
54
55
56
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.ResourceManager.DevTestLabs.Models
{
/// <summary> Properties of a cost threshold item. </summary>
public partial class DevTestLabCostThreshold
{
/// <summary> Initializes a new instance of DevTestLabCostThreshold. </summary>
public DevTestLabCostThreshold()
{
}
/// <summary> Initializes a new instance of DevTestLabCostThreshold. </summary>
/// <param name="thresholdId"> The ID of the cost threshold item. </param>
/// <param name="percentageThreshold"> The value of the percentage cost threshold. </param>
/// <param name="displayOnChart"> Indicates whether this threshold will be displayed on cost charts. </param>
/// <param name="sendNotificationWhenExceeded"> Indicates whether notifications will be sent when this threshold is exceeded. </param>
/// <param name="notificationSent"> Indicates the datetime when notifications were last sent for this threshold. </param>
internal DevTestLabCostThreshold(string thresholdId, PercentageCostThresholdProperties percentageThreshold, DevTestLabCostThresholdStatus? displayOnChart, DevTestLabCostThresholdStatus? sendNotificationWhenExceeded, string notificationSent)
{
ThresholdId = thresholdId;
PercentageThreshold = percentageThreshold;
DisplayOnChart = displayOnChart;
SendNotificationWhenExceeded = sendNotificationWhenExceeded;
NotificationSent = notificationSent;
}
/// <summary> The ID of the cost threshold item. </summary>
public string ThresholdId { get; set; }
/// <summary> The value of the percentage cost threshold. </summary>
internal PercentageCostThresholdProperties PercentageThreshold { get; set; }
/// <summary> The cost threshold value. </summary>
public double? ThresholdValue
{
get => PercentageThreshold is null ? default : PercentageThreshold.ThresholdValue;
set
{
if (PercentageThreshold is null)
PercentageThreshold = new PercentageCostThresholdProperties();
PercentageThreshold.ThresholdValue = value;
}
}
/// <summary> Indicates whether this threshold will be displayed on cost charts. </summary>
public DevTestLabCostThresholdStatus? DisplayOnChart { get; set; }
/// <summary> Indicates whether notifications will be sent when this threshold is exceeded. </summary>
public DevTestLabCostThresholdStatus? SendNotificationWhenExceeded { get; set; }
/// <summary> Indicates the datetime when notifications were last sent for this threshold. </summary>
public string NotificationSent { get; set; }
}
}