SmsReceiver Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. SmsReceiver
- com.
Implements
public final class SmsReceiver
implements JsonSerializable<SmsReceiver>
An SMS receiver.
Constructor Summary
Constructor | Description |
---|---|
SmsReceiver() |
Creates an instance of Sms |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
countryCode()
Get the country |
static
Sms |
fromJson(JsonReader jsonReader)
Reads an instance of Sms |
String |
name()
Get the name property: The name of the SMS receiver. |
String |
phoneNumber()
Get the phone |
Receiver |
status()
Get the status property: The status of the receiver. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Sms |
withCountryCode(String countryCode)
Set the country |
Sms |
withName(String name)
Set the name property: The name of the SMS receiver. |
Sms |
withPhoneNumber(String phoneNumber)
Set the phone |
Methods inherited from java.lang.Object
Constructor Details
SmsReceiver
public SmsReceiver()
Creates an instance of SmsReceiver class.
Method Details
countryCode
public String countryCode()
Get the countryCode property: The country code of the SMS receiver.
Returns:
fromJson
public static SmsReceiver fromJson(JsonReader jsonReader)
Reads an instance of SmsReceiver from the JsonReader.
Parameters:
Returns:
Throws:
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:
phoneNumber
public String phoneNumber()
Get the phoneNumber property: The phone number of the SMS receiver.
Returns:
status
public ReceiverStatus status()
Get the status property: The status of the receiver.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCountryCode
public SmsReceiver withCountryCode(String countryCode)
Set the countryCode property: The country code of the SMS receiver.
Parameters:
Returns:
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:
Returns:
withPhoneNumber
public SmsReceiver withPhoneNumber(String phoneNumber)
Set the phoneNumber property: The phone number of the SMS receiver.
Parameters:
Returns:
Applies to
Azure SDK for Java