VoiceReceiver Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. VoiceReceiver
- com.
Implements
public final class VoiceReceiver
implements JsonSerializable<VoiceReceiver>
A voice receiver.
Constructor Summary
Constructor | Description |
---|---|
VoiceReceiver() |
Creates an instance of Voice |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
countryCode()
Get the country |
static
Voice |
fromJson(JsonReader jsonReader)
Reads an instance of Voice |
String |
name()
Get the name property: The name of the voice receiver. |
String |
phoneNumber()
Get the phone |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Voice |
withCountryCode(String countryCode)
Set the country |
Voice |
withName(String name)
Set the name property: The name of the voice receiver. |
Voice |
withPhoneNumber(String phoneNumber)
Set the phone |
Methods inherited from java.lang.Object
Constructor Details
VoiceReceiver
public VoiceReceiver()
Creates an instance of VoiceReceiver class.
Method Details
countryCode
public String countryCode()
Get the countryCode property: The country code of the voice receiver.
Returns:
fromJson
public static VoiceReceiver fromJson(JsonReader jsonReader)
Reads an instance of VoiceReceiver from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the voice 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 voice receiver.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCountryCode
public VoiceReceiver withCountryCode(String countryCode)
Set the countryCode property: The country code of the voice receiver.
Parameters:
Returns:
withName
public VoiceReceiver withName(String name)
Set the name property: The name of the voice receiver. Names must be unique across all receivers within an action group.
Parameters:
Returns:
withPhoneNumber
public VoiceReceiver withPhoneNumber(String phoneNumber)
Set the phoneNumber property: The phone number of the voice receiver.
Parameters:
Returns:
Applies to
Azure SDK for Java