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