TelephonyChannelProperties Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. TelephonyChannelProperties
- com.
Implements
public final class TelephonyChannelProperties
implements JsonSerializable<TelephonyChannelProperties>
The parameters to provide for the Direct Line channel.
Constructor Summary
| Constructor | Description |
|---|---|
| TelephonyChannelProperties() |
Creates an instance of Telephony |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Telephony |
apiConfigurations()
Get the api |
| String |
cognitiveServiceRegion()
Get the cognitive |
| String |
cognitiveServiceSubscriptionKey()
Get the cognitive |
| String |
defaultLocale()
Get the default |
|
static
Telephony |
fromJson(JsonReader jsonReader)
Reads an instance of Telephony |
| Boolean |
isEnabled()
Get the is |
|
List<Telephony |
phoneNumbers()
Get the phone |
| String |
premiumSku()
Get the premium |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Telephony |
withApiConfigurations(List<TelephonyChannelResourceApiConfiguration> apiConfigurations)
Set the api |
|
Telephony |
withCognitiveServiceRegion(String cognitiveServiceRegion)
Set the cognitive |
|
Telephony |
withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)
Set the cognitive |
|
Telephony |
withDefaultLocale(String defaultLocale)
Set the default |
|
Telephony |
withIsEnabled(Boolean isEnabled)
Set the is |
|
Telephony |
withPhoneNumbers(List<TelephonyPhoneNumbers> phoneNumbers)
Set the phone |
|
Telephony |
withPremiumSku(String premiumSku)
Set the premium |
Methods inherited from java.lang.Object
Constructor Details
TelephonyChannelProperties
public TelephonyChannelProperties()
Creates an instance of TelephonyChannelProperties class.
Method Details
apiConfigurations
public List<TelephonyChannelResourceApiConfiguration> apiConfigurations()
Get the apiConfigurations property: The list of Telephony api configuration.
Returns:
cognitiveServiceRegion
public String cognitiveServiceRegion()
Get the cognitiveServiceRegion property: The extensionKey2.
Returns:
cognitiveServiceSubscriptionKey
public String cognitiveServiceSubscriptionKey()
Get the cognitiveServiceSubscriptionKey property: The extensionKey1.
Returns:
defaultLocale
public String defaultLocale()
Get the defaultLocale property: The default locale of the channel.
Returns:
fromJson
public static TelephonyChannelProperties fromJson(JsonReader jsonReader)
Reads an instance of TelephonyChannelProperties from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Whether the channel is enabled.
Returns:
phoneNumbers
public List<TelephonyPhoneNumbers> phoneNumbers()
Get the phoneNumbers property: The list of Telephony phone numbers.
Returns:
premiumSku
public String premiumSku()
Get the premiumSku property: The premium SKU applied to the channel.
Returns:
toJson
validate
public void validate()
Validates the instance.
withApiConfigurations
public TelephonyChannelProperties withApiConfigurations(List<TelephonyChannelResourceApiConfiguration> apiConfigurations)
Set the apiConfigurations property: The list of Telephony api configuration.
Parameters:
Returns:
withCognitiveServiceRegion
public TelephonyChannelProperties withCognitiveServiceRegion(String cognitiveServiceRegion)
Set the cognitiveServiceRegion property: The extensionKey2.
Parameters:
Returns:
withCognitiveServiceSubscriptionKey
public TelephonyChannelProperties withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)
Set the cognitiveServiceSubscriptionKey property: The extensionKey1.
Parameters:
Returns:
withDefaultLocale
public TelephonyChannelProperties withDefaultLocale(String defaultLocale)
Set the defaultLocale property: The default locale of the channel.
Parameters:
Returns:
withIsEnabled
public TelephonyChannelProperties withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Whether the channel is enabled.
Parameters:
Returns:
withPhoneNumbers
public TelephonyChannelProperties withPhoneNumbers(List<TelephonyPhoneNumbers> phoneNumbers)
Set the phoneNumbers property: The list of Telephony phone numbers.
Parameters:
Returns:
withPremiumSku
public TelephonyChannelProperties withPremiumSku(String premiumSku)
Set the premiumSku property: The premium SKU applied to the channel.
Parameters:
Returns: