Class SmsReceiver
java.lang.Object
com.microsoft.azure.management.monitor.SmsReceiver
An SMS receiver.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the country code of the SMS receiver.name()
Get the name of the SMS receiver.Get the phone number of the SMS receiver.status()
Get the status of the receiver.withCountryCode
(String countryCode) Set the country code of the SMS receiver.Set the name of the SMS receiver.withPhoneNumber
(String phoneNumber) Set the phone number of the SMS receiver.
-
Constructor Details
-
SmsReceiver
public SmsReceiver()
-
-
Method Details
-
name
Get the name of the SMS receiver. Names must be unique across all receivers within an action group.- Returns:
- the name value
-
withName
Set the name of the SMS receiver. Names must be unique across all receivers within an action group.- Parameters:
name
- the name value to set- Returns:
- the SmsReceiver object itself.
-
countryCode
Get the country code of the SMS receiver.- Returns:
- the countryCode value
-
withCountryCode
Set the country code of the SMS receiver.- Parameters:
countryCode
- the countryCode value to set- Returns:
- the SmsReceiver object itself.
-
phoneNumber
Get the phone number of the SMS receiver.- Returns:
- the phoneNumber value
-
withPhoneNumber
Set the phone number of the SMS receiver.- Parameters:
phoneNumber
- the phoneNumber value to set- Returns:
- the SmsReceiver object itself.
-
status
Get the status of the receiver. Possible values include: 'NotSpecified', 'Enabled', 'Disabled'.- Returns:
- the status value
-