Class SmsReceiver
An SMS receiver.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
public class SmsReceiver
Constructors
SmsReceiver()
Initializes a new instance of the SmsReceiver class.
Declaration
public SmsReceiver ();
SmsReceiver(String, String, String, Nullable<ReceiverStatus>)
Initializes a new instance of the SmsReceiver class.
Declaration
public SmsReceiver (string name, string countryCode, string phoneNumber, Nullable<Microsoft.Azure.Management.Monitor.Models.ReceiverStatus> status = null);
Parameters
|
String
name
The name of the SMS receiver. Names must be unique across all receivers within an action group. |
|
String
countryCode
The country code of the SMS receiver. |
|
String
phoneNumber
The phone number of the SMS receiver. |
|
Nullable<ReceiverStatus>
status
The status of the receiver. Possible values include: 'NotSpecified', 'Enabled', 'Disabled' |
Properties
CountryCode
Gets or sets the country code of the SMS receiver.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="countryCode")]
public string CountryCode { get; set; }
Property Value
|
String
|
Name
Gets or sets the name of the SMS receiver. Names must be unique across all receivers within an action group.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="name")]
public string Name { get; set; }
Property Value
|
String
|
PhoneNumber
Gets or sets the phone number of the SMS receiver.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="phoneNumber")]
public string PhoneNumber { get; set; }
Property Value
|
String
|
Status
Gets the status of the receiver. Possible values include: 'NotSpecified', 'Enabled', 'Disabled'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="status")]
public Nullable<Microsoft.Azure.Management.Monitor.Models.ReceiverStatus> Status { get; }
Property Value
|
Nullable<ReceiverStatus>
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |