Class VoiceReceiver
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.VoiceReceiver
-
public final class VoiceReceiver extends Object
A voice receiver.
-
-
Constructor Summary
Constructors Constructor Description VoiceReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcountryCode()Get the countryCode property: The country code of the voice receiver.Stringname()Get the name property: The name of the voice receiver.StringphoneNumber()Get the phoneNumber property: The phone number of the voice receiver.voidvalidate()Validates the instance.VoiceReceiverwithCountryCode(String countryCode)Set the countryCode property: The country code of the voice receiver.VoiceReceiverwithName(String name)Set the name property: The name of the voice receiver.VoiceReceiverwithPhoneNumber(String phoneNumber)Set the phoneNumber property: The phone number of the voice receiver.
-
-
-
Method Detail
-
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:
- the name value.
-
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:
name- the name value to set.- Returns:
- the VoiceReceiver object itself.
-
countryCode
public String countryCode()
Get the countryCode property: The country code of the voice receiver.- Returns:
- the countryCode value.
-
withCountryCode
public VoiceReceiver withCountryCode(String countryCode)
Set the countryCode property: The country code of the voice receiver.- Parameters:
countryCode- the countryCode value to set.- Returns:
- the VoiceReceiver object itself.
-
phoneNumber
public String phoneNumber()
Get the phoneNumber property: The phone number of the voice receiver.- Returns:
- the phoneNumber value.
-
withPhoneNumber
public VoiceReceiver withPhoneNumber(String phoneNumber)
Set the phoneNumber property: The phone number of the voice receiver.- Parameters:
phoneNumber- the phoneNumber value to set.- Returns:
- the VoiceReceiver object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-