Class DirectLineSpeechChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.DirectLineSpeechChannelProperties
The parameters to provide for the DirectLine Speech channel.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the cognitiveServiceRegion property: The cognitive service region with this channel registration.Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.Get the customSpeechModelId property: Custom voice deployment id (optional).Get the customVoiceDeploymentId property: Custom speech model id (optional).Get the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.Get the isEnabled property: Whether this channel is enabled or not.void
validate()
Validates the instance.withCognitiveServiceRegion
(String cognitiveServiceRegion) Set the cognitiveServiceRegion property: The cognitive service region with this channel registration.withCognitiveServiceSubscriptionKey
(String cognitiveServiceSubscriptionKey) Set the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.withCustomSpeechModelId
(String customSpeechModelId) Set the customSpeechModelId property: Custom voice deployment id (optional).withCustomVoiceDeploymentId
(String customVoiceDeploymentId) Set the customVoiceDeploymentId property: Custom speech model id (optional).withIsDefaultBotForCogSvcAccount
(Boolean isDefaultBotForCogSvcAccount) Set the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.withIsEnabled
(Boolean isEnabled) Set the isEnabled property: Whether this channel is enabled or not.
-
Constructor Details
-
DirectLineSpeechChannelProperties
public DirectLineSpeechChannelProperties()
-
-
Method Details
-
cognitiveServiceRegion
Get the cognitiveServiceRegion property: The cognitive service region with this channel registration.- Returns:
- the cognitiveServiceRegion value.
-
withCognitiveServiceRegion
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
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
Get the isEnabled property: Whether this channel is enabled or not.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether this channel is enabled or not.- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the DirectLineSpeechChannelProperties object itself.
-
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
Get the customSpeechModelId property: Custom voice deployment id (optional).- Returns:
- the customSpeechModelId value.
-
withCustomSpeechModelId
Set the customSpeechModelId property: Custom voice deployment id (optional).- Parameters:
customSpeechModelId
- the customSpeechModelId value to set.- Returns:
- the DirectLineSpeechChannelProperties object itself.
-
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.
-