Class SmsReceiver
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.SmsReceiver
-
public final class SmsReceiver extends Object
An SMS receiver.
-
-
Constructor Summary
Constructors Constructor Description SmsReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcountryCode()Get the countryCode property: The country code of the SMS receiver.Stringname()Get the name property: The name of the SMS receiver.StringphoneNumber()Get the phoneNumber property: The phone number of the SMS receiver.ReceiverStatusstatus()Get the status property: The status of the receiver.voidvalidate()Validates the instance.SmsReceiverwithCountryCode(String countryCode)Set the countryCode property: The country code of the SMS receiver.SmsReceiverwithName(String name)Set the name property: The name of the SMS receiver.SmsReceiverwithPhoneNumber(String phoneNumber)Set the phoneNumber property: The phone number of the SMS receiver.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the SMS receiver. Names must be unique across all receivers within an action group.- Returns:
- the name value.
-
withName
public SmsReceiver withName(String name)
Set the name property: 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
public String countryCode()
Get the countryCode property: The country code of the SMS receiver.- Returns:
- the countryCode value.
-
withCountryCode
public SmsReceiver withCountryCode(String countryCode)
Set the countryCode property: The country code of the SMS receiver.- Parameters:
countryCode- the countryCode value to set.- Returns:
- the SmsReceiver object itself.
-
phoneNumber
public String phoneNumber()
Get the phoneNumber property: The phone number of the SMS receiver.- Returns:
- the phoneNumber value.
-
withPhoneNumber
public SmsReceiver withPhoneNumber(String phoneNumber)
Set the phoneNumber property: The phone number of the SMS receiver.- Parameters:
phoneNumber- the phoneNumber value to set.- Returns:
- the SmsReceiver object itself.
-
status
public ReceiverStatus status()
Get the status property: The status of the receiver.- Returns:
- the status value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-