Class TelephonyChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.TelephonyChannelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TelephonyChannelProperties>
public final class TelephonyChannelProperties
extends Object
implements com.azure.json.JsonSerializable<TelephonyChannelProperties>
The parameters to provide for the Direct Line channel.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TelephonyChannelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the apiConfigurations property: The list of Telephony api configuration.Get the cognitiveServiceRegion property: The extensionKey2.Get the cognitiveServiceSubscriptionKey property: The extensionKey1.Get the defaultLocale property: The default locale of the channel.static TelephonyChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TelephonyChannelProperties from the JsonReader.Get the isEnabled property: Whether the channel is enabled.Get the phoneNumbers property: The list of Telephony phone numbers.Get the premiumSku property: The premium SKU applied to the channel.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApiConfigurations(List<TelephonyChannelResourceApiConfiguration> apiConfigurations) Set the apiConfigurations property: The list of Telephony api configuration.withCognitiveServiceRegion(String cognitiveServiceRegion) Set the cognitiveServiceRegion property: The extensionKey2.withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey) Set the cognitiveServiceSubscriptionKey property: The extensionKey1.withDefaultLocale(String defaultLocale) Set the defaultLocale property: The default locale of the channel.withIsEnabled(Boolean isEnabled) Set the isEnabled property: Whether the channel is enabled.withPhoneNumbers(List<TelephonyPhoneNumbers> phoneNumbers) Set the phoneNumbers property: The list of Telephony phone numbers.withPremiumSku(String premiumSku) Set the premiumSku property: The premium SKU applied to the channel.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
-
TelephonyChannelProperties
public TelephonyChannelProperties()Creates an instance of TelephonyChannelProperties class.
-
-
Method Details
-
phoneNumbers
Get the phoneNumbers property: The list of Telephony phone numbers.- Returns:
- the phoneNumbers value.
-
withPhoneNumbers
Set the phoneNumbers property: The list of Telephony phone numbers.- Parameters:
phoneNumbers- the phoneNumbers value to set.- Returns:
- the TelephonyChannelProperties object itself.
-
apiConfigurations
Get the apiConfigurations property: The list of Telephony api configuration.- Returns:
- the apiConfigurations value.
-
withApiConfigurations
public TelephonyChannelProperties withApiConfigurations(List<TelephonyChannelResourceApiConfiguration> apiConfigurations) Set the apiConfigurations property: The list of Telephony api configuration.- Parameters:
apiConfigurations- the apiConfigurations value to set.- Returns:
- the TelephonyChannelProperties object itself.
-
cognitiveServiceSubscriptionKey
Get the cognitiveServiceSubscriptionKey property: The extensionKey1.- Returns:
- the cognitiveServiceSubscriptionKey value.
-
withCognitiveServiceSubscriptionKey
public TelephonyChannelProperties withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey) Set the cognitiveServiceSubscriptionKey property: The extensionKey1.- Parameters:
cognitiveServiceSubscriptionKey- the cognitiveServiceSubscriptionKey value to set.- Returns:
- the TelephonyChannelProperties object itself.
-
cognitiveServiceRegion
Get the cognitiveServiceRegion property: The extensionKey2.- Returns:
- the cognitiveServiceRegion value.
-
withCognitiveServiceRegion
Set the cognitiveServiceRegion property: The extensionKey2.- Parameters:
cognitiveServiceRegion- the cognitiveServiceRegion value to set.- Returns:
- the TelephonyChannelProperties object itself.
-
defaultLocale
Get the defaultLocale property: The default locale of the channel.- Returns:
- the defaultLocale value.
-
withDefaultLocale
Set the defaultLocale property: The default locale of the channel.- Parameters:
defaultLocale- the defaultLocale value to set.- Returns:
- the TelephonyChannelProperties object itself.
-
withPremiumSku
Set the premiumSku property: The premium SKU applied to the channel.- Parameters:
premiumSku- the premiumSku value to set.- Returns:
- the TelephonyChannelProperties object itself.
-
isEnabled
Get the isEnabled property: Whether the channel is enabled.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether the channel is enabled.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the TelephonyChannelProperties 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<TelephonyChannelProperties>- Throws:
IOException
-
fromJson
public static TelephonyChannelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TelephonyChannelProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TelephonyChannelProperties 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 TelephonyChannelProperties.
-