Share via


TelephonyChannelProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.TelephonyChannelProperties

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 TelephonyChannelProperties class.

Method Summary

Modifier and Type Method and Description
List<TelephonyChannelResourceApiConfiguration> apiConfigurations()

Get the apiConfigurations property: The list of Telephony api configuration.

String cognitiveServiceRegion()

Get the cognitiveServiceRegion property: The extensionKey2.

String cognitiveServiceSubscriptionKey()

Get the cognitiveServiceSubscriptionKey property: The extensionKey1.

String defaultLocale()

Get the defaultLocale property: The default locale of the channel.

static TelephonyChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of TelephonyChannelProperties from the JsonReader.

Boolean isEnabled()

Get the isEnabled property: Whether the channel is enabled.

List<TelephonyPhoneNumbers> phoneNumbers()

Get the phoneNumbers property: The list of Telephony phone numbers.

String premiumSku()

Get the premiumSku property: The premium SKU applied to the channel.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TelephonyChannelProperties withApiConfigurations(List<TelephonyChannelResourceApiConfiguration> apiConfigurations)

Set the apiConfigurations property: The list of Telephony api configuration.

TelephonyChannelProperties withCognitiveServiceRegion(String cognitiveServiceRegion)

Set the cognitiveServiceRegion property: The extensionKey2.

TelephonyChannelProperties withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)

Set the cognitiveServiceSubscriptionKey property: The extensionKey1.

TelephonyChannelProperties withDefaultLocale(String defaultLocale)

Set the defaultLocale property: The default locale of the channel.

TelephonyChannelProperties withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Whether the channel is enabled.

TelephonyChannelProperties withPhoneNumbers(List<TelephonyPhoneNumbers> phoneNumbers)

Set the phoneNumbers property: The list of Telephony phone numbers.

TelephonyChannelProperties withPremiumSku(String premiumSku)

Set the premiumSku property: The premium SKU applied to the channel.

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:

the apiConfigurations value.

cognitiveServiceRegion

public String cognitiveServiceRegion()

Get the cognitiveServiceRegion property: The extensionKey2.

Returns:

the cognitiveServiceRegion value.

cognitiveServiceSubscriptionKey

public String cognitiveServiceSubscriptionKey()

Get the cognitiveServiceSubscriptionKey property: The extensionKey1.

Returns:

the cognitiveServiceSubscriptionKey value.

defaultLocale

public String defaultLocale()

Get the defaultLocale property: The default locale of the channel.

Returns:

the defaultLocale value.

fromJson

public static TelephonyChannelProperties fromJson(JsonReader jsonReader)

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.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Whether the channel is enabled.

Returns:

the isEnabled value.

phoneNumbers

public List<TelephonyPhoneNumbers> phoneNumbers()

Get the phoneNumbers property: The list of Telephony phone numbers.

Returns:

the phoneNumbers value.

premiumSku

public String premiumSku()

Get the premiumSku property: The premium SKU applied to the channel.

Returns:

the premiumSku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

apiConfigurations - the apiConfigurations value to set.

Returns:

the TelephonyChannelProperties object itself.

withCognitiveServiceRegion

public TelephonyChannelProperties withCognitiveServiceRegion(String cognitiveServiceRegion)

Set the cognitiveServiceRegion property: The extensionKey2.

Parameters:

cognitiveServiceRegion - the cognitiveServiceRegion value to set.

Returns:

the TelephonyChannelProperties object itself.

withCognitiveServiceSubscriptionKey

public TelephonyChannelProperties withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)

Set the cognitiveServiceSubscriptionKey property: The extensionKey1.

Parameters:

cognitiveServiceSubscriptionKey - the cognitiveServiceSubscriptionKey value to set.

Returns:

the TelephonyChannelProperties object itself.

withDefaultLocale

public TelephonyChannelProperties withDefaultLocale(String defaultLocale)

Set the defaultLocale property: The default locale of the channel.

Parameters:

defaultLocale - the defaultLocale value to set.

Returns:

the TelephonyChannelProperties object itself.

withIsEnabled

public TelephonyChannelProperties withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Whether the channel is enabled.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the TelephonyChannelProperties object itself.

withPhoneNumbers

public TelephonyChannelProperties withPhoneNumbers(List<TelephonyPhoneNumbers> phoneNumbers)

Set the phoneNumbers property: The list of Telephony phone numbers.

Parameters:

phoneNumbers - the phoneNumbers value to set.

Returns:

the TelephonyChannelProperties object itself.

withPremiumSku

public TelephonyChannelProperties withPremiumSku(String premiumSku)

Set the premiumSku property: The premium SKU applied to the channel.

Parameters:

premiumSku - the premiumSku value to set.

Returns:

the TelephonyChannelProperties object itself.

Applies to