-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MonitorEmailReceiver.cs
51 lines (44 loc) · 2.34 KB
/
MonitorEmailReceiver.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.Monitor.Models
{
/// <summary> An email receiver. </summary>
public partial class MonitorEmailReceiver
{
/// <summary> Initializes a new instance of MonitorEmailReceiver. </summary>
/// <param name="name"> The name of the email receiver. Names must be unique across all receivers within an action group. </param>
/// <param name="emailAddress"> The email address of this receiver. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="emailAddress"/> is null. </exception>
public MonitorEmailReceiver(string name, string emailAddress)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(emailAddress, nameof(emailAddress));
Name = name;
EmailAddress = emailAddress;
}
/// <summary> Initializes a new instance of MonitorEmailReceiver. </summary>
/// <param name="name"> The name of the email receiver. Names must be unique across all receivers within an action group. </param>
/// <param name="emailAddress"> The email address of this receiver. </param>
/// <param name="useCommonAlertSchema"> Indicates whether to use common alert schema. </param>
/// <param name="status"> The receiver status of the e-mail. </param>
internal MonitorEmailReceiver(string name, string emailAddress, bool? useCommonAlertSchema, MonitorReceiverStatus? status)
{
Name = name;
EmailAddress = emailAddress;
UseCommonAlertSchema = useCommonAlertSchema;
Status = status;
}
/// <summary> The name of the email receiver. Names must be unique across all receivers within an action group. </summary>
public string Name { get; set; }
/// <summary> The email address of this receiver. </summary>
public string EmailAddress { get; set; }
/// <summary> Indicates whether to use common alert schema. </summary>
public bool? UseCommonAlertSchema { get; set; }
/// <summary> The receiver status of the e-mail. </summary>
public MonitorReceiverStatus? Status { get; }
}
}