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 Details

    • TelephonyChannelProperties

      public TelephonyChannelProperties()
      Creates an instance of TelephonyChannelProperties class.
  • Method Details

    • phoneNumbers

      public List<TelephonyPhoneNumbers> phoneNumbers()
      Get the phoneNumbers property: The list of Telephony phone numbers.
      Returns:
      the phoneNumbers value.
    • 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.
    • apiConfigurations

      public List<TelephonyChannelResourceApiConfiguration> 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

      public String 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

      public String cognitiveServiceRegion()
      Get the cognitiveServiceRegion property: The extensionKey2.
      Returns:
      the cognitiveServiceRegion value.
    • withCognitiveServiceRegion

      public TelephonyChannelProperties withCognitiveServiceRegion(String cognitiveServiceRegion)
      Set the cognitiveServiceRegion property: The extensionKey2.
      Parameters:
      cognitiveServiceRegion - the cognitiveServiceRegion value to set.
      Returns:
      the TelephonyChannelProperties object itself.
    • defaultLocale

      public String defaultLocale()
      Get the defaultLocale property: The default locale of the channel.
      Returns:
      the defaultLocale value.
    • 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.
    • premiumSku

      public String premiumSku()
      Get the premiumSku property: The premium SKU applied to the channel.
      Returns:
      the premiumSku value.
    • 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.
    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: Whether the channel is enabled.
      Returns:
      the isEnabled value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.