Class DirectLineSpeechChannelProperties

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

public final class DirectLineSpeechChannelProperties extends Object implements com.azure.json.JsonSerializable<DirectLineSpeechChannelProperties>
The parameters to provide for the DirectLine Speech channel.
  • Constructor Details

    • DirectLineSpeechChannelProperties

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

    • cognitiveServiceResourceId

      public String cognitiveServiceResourceId()
      Get the cognitiveServiceResourceId property: The cognitive service id with this channel registration.
      Returns:
      the cognitiveServiceResourceId value.
    • withCognitiveServiceResourceId

      public DirectLineSpeechChannelProperties withCognitiveServiceResourceId(String cognitiveServiceResourceId)
      Set the cognitiveServiceResourceId property: The cognitive service id with this channel registration.
      Parameters:
      cognitiveServiceResourceId - the cognitiveServiceResourceId value to set.
      Returns:
      the DirectLineSpeechChannelProperties object itself.
    • cognitiveServiceRegion

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

      public DirectLineSpeechChannelProperties withCognitiveServiceRegion(String cognitiveServiceRegion)
      Set the cognitiveServiceRegion property: The cognitive service region with this channel registration.
      Parameters:
      cognitiveServiceRegion - the cognitiveServiceRegion value to set.
      Returns:
      the DirectLineSpeechChannelProperties object itself.
    • cognitiveServiceSubscriptionKey

      public String cognitiveServiceSubscriptionKey()
      Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.
      Returns:
      the cognitiveServiceSubscriptionKey value.
    • withCognitiveServiceSubscriptionKey

      public DirectLineSpeechChannelProperties withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)
      Set the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.
      Parameters:
      cognitiveServiceSubscriptionKey - the cognitiveServiceSubscriptionKey value to set.
      Returns:
      the DirectLineSpeechChannelProperties object itself.
    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: Whether this channel is enabled or not.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public DirectLineSpeechChannelProperties withIsEnabled(Boolean isEnabled)
      Set the isEnabled property: Whether this channel is enabled or not.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the DirectLineSpeechChannelProperties object itself.
    • customVoiceDeploymentId

      public String customVoiceDeploymentId()
      Get the customVoiceDeploymentId property: Custom speech model id (optional).
      Returns:
      the customVoiceDeploymentId value.
    • withCustomVoiceDeploymentId

      public DirectLineSpeechChannelProperties withCustomVoiceDeploymentId(String customVoiceDeploymentId)
      Set the customVoiceDeploymentId property: Custom speech model id (optional).
      Parameters:
      customVoiceDeploymentId - the customVoiceDeploymentId value to set.
      Returns:
      the DirectLineSpeechChannelProperties object itself.
    • customSpeechModelId

      public String customSpeechModelId()
      Get the customSpeechModelId property: Custom voice deployment id (optional).
      Returns:
      the customSpeechModelId value.
    • withCustomSpeechModelId

      public DirectLineSpeechChannelProperties withCustomSpeechModelId(String customSpeechModelId)
      Set the customSpeechModelId property: Custom voice deployment id (optional).
      Parameters:
      customSpeechModelId - the customSpeechModelId value to set.
      Returns:
      the DirectLineSpeechChannelProperties object itself.
    • isDefaultBotForCogSvcAccount

      public Boolean isDefaultBotForCogSvcAccount()
      Get the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.
      Returns:
      the isDefaultBotForCogSvcAccount value.
    • withIsDefaultBotForCogSvcAccount

      public DirectLineSpeechChannelProperties withIsDefaultBotForCogSvcAccount(Boolean isDefaultBotForCogSvcAccount)
      Set the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.
      Parameters:
      isDefaultBotForCogSvcAccount - the isDefaultBotForCogSvcAccount value to set.
      Returns:
      the DirectLineSpeechChannelProperties 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<DirectLineSpeechChannelProperties>
      Throws:
      IOException
    • fromJson

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