Class TelephonyChannelResourceApiConfiguration

java.lang.Object
com.azure.resourcemanager.botservice.models.TelephonyChannelResourceApiConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<TelephonyChannelResourceApiConfiguration>

public final class TelephonyChannelResourceApiConfiguration extends Object implements com.azure.json.JsonSerializable<TelephonyChannelResourceApiConfiguration>
A resource Api configuration for the Telephony channel.
  • Constructor Details

    • TelephonyChannelResourceApiConfiguration

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

    • id

      public String id()
      Get the id property: The id of config.
      Returns:
      the id value.
    • withId

      Set the id property: The id of config.
      Parameters:
      id - the id value to set.
      Returns:
      the TelephonyChannelResourceApiConfiguration object itself.
    • providerName

      public String providerName()
      Get the providerName property: The provider name.
      Returns:
      the providerName value.
    • withProviderName

      public TelephonyChannelResourceApiConfiguration withProviderName(String providerName)
      Set the providerName property: The provider name.
      Parameters:
      providerName - the providerName value to set.
      Returns:
      the TelephonyChannelResourceApiConfiguration object itself.
    • cognitiveServiceSubscriptionKey

      public String cognitiveServiceSubscriptionKey()
      Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.
      Returns:
      the cognitiveServiceSubscriptionKey value.
    • withCognitiveServiceSubscriptionKey

      public TelephonyChannelResourceApiConfiguration withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)
      Set the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.
      Parameters:
      cognitiveServiceSubscriptionKey - the cognitiveServiceSubscriptionKey value to set.
      Returns:
      the TelephonyChannelResourceApiConfiguration object itself.
    • cognitiveServiceRegion

      public String cognitiveServiceRegion()
      Get the cognitiveServiceRegion property: The cognitive service region.
      Returns:
      the cognitiveServiceRegion value.
    • withCognitiveServiceRegion

      public TelephonyChannelResourceApiConfiguration withCognitiveServiceRegion(String cognitiveServiceRegion)
      Set the cognitiveServiceRegion property: The cognitive service region.
      Parameters:
      cognitiveServiceRegion - the cognitiveServiceRegion value to set.
      Returns:
      the TelephonyChannelResourceApiConfiguration object itself.
    • cognitiveServiceResourceId

      public String cognitiveServiceResourceId()
      Get the cognitiveServiceResourceId property: The cognitive service resourceId.
      Returns:
      the cognitiveServiceResourceId value.
    • withCognitiveServiceResourceId

      public TelephonyChannelResourceApiConfiguration withCognitiveServiceResourceId(String cognitiveServiceResourceId)
      Set the cognitiveServiceResourceId property: The cognitive service resourceId.
      Parameters:
      cognitiveServiceResourceId - the cognitiveServiceResourceId value to set.
      Returns:
      the TelephonyChannelResourceApiConfiguration object itself.
    • defaultLocale

      public String defaultLocale()
      Get the defaultLocale property: The default locale.
      Returns:
      the defaultLocale value.
    • withDefaultLocale

      public TelephonyChannelResourceApiConfiguration withDefaultLocale(String defaultLocale)
      Set the defaultLocale property: The default locale.
      Parameters:
      defaultLocale - the defaultLocale value to set.
      Returns:
      the TelephonyChannelResourceApiConfiguration 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<TelephonyChannelResourceApiConfiguration>
      Throws:
      IOException
    • fromJson

      public static TelephonyChannelResourceApiConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TelephonyChannelResourceApiConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TelephonyChannelResourceApiConfiguration 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 TelephonyChannelResourceApiConfiguration.