public final class SmsReceiver extends Object
| Constructor and Description |
|---|
SmsReceiver() |
| Modifier and Type | Method and Description |
|---|---|
String |
countryCode()
Get the countryCode property: The country code of the SMS receiver.
|
String |
name()
Get the name property: The name of the SMS receiver.
|
String |
phoneNumber()
Get the phoneNumber property: The phone number of the SMS receiver.
|
ReceiverStatus |
status()
Get the status property: The status of the receiver.
|
void |
validate()
Validates the instance.
|
SmsReceiver |
withCountryCode(String countryCode)
Set the countryCode property: The country code of the SMS receiver.
|
SmsReceiver |
withName(String name)
Set the name property: The name of the SMS receiver.
|
SmsReceiver |
withPhoneNumber(String phoneNumber)
Set the phoneNumber property: The phone number of the SMS receiver.
|
public String name()
public SmsReceiver withName(String name)
name - the name value to set.public String countryCode()
public SmsReceiver withCountryCode(String countryCode)
countryCode - the countryCode value to set.public String phoneNumber()
public SmsReceiver withPhoneNumber(String phoneNumber)
phoneNumber - the phoneNumber value to set.public ReceiverStatus status()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.