Class TelephonyPhoneNumbers
java.lang.Object
com.azure.resourcemanager.botservice.models.TelephonyPhoneNumbers
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TelephonyPhoneNumbers>
public final class TelephonyPhoneNumbers
extends Object
implements com.azure.json.JsonSerializable<TelephonyPhoneNumbers>
A telephone number for the Telephony channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the acsEndpoint property: The endpoint of ACS.Get the acsResourceId property: The resource id of ACS.Get the acsSecret property: The secret of ACS.Get the cognitiveServiceRegion property: The service region of cognitive service.Get the cognitiveServiceResourceId property: The resource id of cognitive service.Get the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.Get the defaultLocale property: The default locale of the phone number.static TelephonyPhoneNumbersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TelephonyPhoneNumbers from the JsonReader.id()Get the id property: The element id.Get the offerType property: Optional Property that will determine the offering type of the phone.Get the phoneNumber property: The phone number.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAcsEndpoint(String acsEndpoint) Set the acsEndpoint property: The endpoint of ACS.withAcsResourceId(String acsResourceId) Set the acsResourceId property: The resource id of ACS.withAcsSecret(String acsSecret) Set the acsSecret property: The secret of ACS.withCognitiveServiceRegion(String cognitiveServiceRegion) Set the cognitiveServiceRegion property: The service region of cognitive service.withCognitiveServiceResourceId(String cognitiveServiceResourceId) Set the cognitiveServiceResourceId property: The resource id of cognitive service.withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey) Set the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.withDefaultLocale(String defaultLocale) Set the defaultLocale property: The default locale of the phone number.Set the id property: The element id.withOfferType(String offerType) Set the offerType property: Optional Property that will determine the offering type of the phone.withPhoneNumber(String phoneNumber) Set the phoneNumber property: The phone number.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TelephonyPhoneNumbers
public TelephonyPhoneNumbers()Creates an instance of TelephonyPhoneNumbers class.
-
-
Method Details
-
id
Get the id property: The element id.- Returns:
- the id value.
-
withId
Set the id property: The element id.- Parameters:
id- the id value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
phoneNumber
Get the phoneNumber property: The phone number.- Returns:
- the phoneNumber value.
-
withPhoneNumber
Set the phoneNumber property: The phone number.- Parameters:
phoneNumber- the phoneNumber value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
acsEndpoint
Get the acsEndpoint property: The endpoint of ACS.- Returns:
- the acsEndpoint value.
-
withAcsEndpoint
Set the acsEndpoint property: The endpoint of ACS.- Parameters:
acsEndpoint- the acsEndpoint value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
acsSecret
Get the acsSecret property: The secret of ACS.- Returns:
- the acsSecret value.
-
withAcsSecret
Set the acsSecret property: The secret of ACS.- Parameters:
acsSecret- the acsSecret value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
acsResourceId
Get the acsResourceId property: The resource id of ACS.- Returns:
- the acsResourceId value.
-
withAcsResourceId
Set the acsResourceId property: The resource id of ACS.- Parameters:
acsResourceId- the acsResourceId value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
cognitiveServiceSubscriptionKey
Get the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.- Returns:
- the cognitiveServiceSubscriptionKey value.
-
withCognitiveServiceSubscriptionKey
public TelephonyPhoneNumbers withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey) Set the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.- Parameters:
cognitiveServiceSubscriptionKey- the cognitiveServiceSubscriptionKey value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
cognitiveServiceRegion
Get the cognitiveServiceRegion property: The service region of cognitive service.- Returns:
- the cognitiveServiceRegion value.
-
withCognitiveServiceRegion
Set the cognitiveServiceRegion property: The service region of cognitive service.- Parameters:
cognitiveServiceRegion- the cognitiveServiceRegion value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
cognitiveServiceResourceId
Get the cognitiveServiceResourceId property: The resource id of cognitive service.- Returns:
- the cognitiveServiceResourceId value.
-
withCognitiveServiceResourceId
Set the cognitiveServiceResourceId property: The resource id of cognitive service.- Parameters:
cognitiveServiceResourceId- the cognitiveServiceResourceId value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
defaultLocale
Get the defaultLocale property: The default locale of the phone number.- Returns:
- the defaultLocale value.
-
withDefaultLocale
Set the defaultLocale property: The default locale of the phone number.- Parameters:
defaultLocale- the defaultLocale value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
offerType
Get the offerType property: Optional Property that will determine the offering type of the phone.- Returns:
- the offerType value.
-
withOfferType
Set the offerType property: Optional Property that will determine the offering type of the phone.- Parameters:
offerType- the offerType value to set.- Returns:
- the TelephonyPhoneNumbers object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TelephonyPhoneNumbers>- Throws:
IOException
-
fromJson
public static TelephonyPhoneNumbers fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TelephonyPhoneNumbers from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TelephonyPhoneNumbers if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TelephonyPhoneNumbers.
-