Class DirectLineSpeechChannelProperties


  • public final class DirectLineSpeechChannelProperties
    extends Object
    The parameters to provide for the DirectLine Speech channel.
    • Constructor Detail

      • DirectLineSpeechChannelProperties

        public DirectLineSpeechChannelProperties()
    • Method Detail

      • 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.