DirectLineSpeechChannelProperties Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. DirectLineSpeechChannelProperties
- com.
Implements
public final class DirectLineSpeechChannelProperties
implements JsonSerializable<DirectLineSpeechChannelProperties>
The parameters to provide for the DirectLine Speech channel.
Constructor Summary
| Constructor | Description |
|---|---|
| DirectLineSpeechChannelProperties() |
Creates an instance of Direct |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
cognitiveServiceRegion()
Get the cognitive |
| String |
cognitiveServiceResourceId()
Get the cognitive |
| String |
cognitiveServiceSubscriptionKey()
Get the cognitive |
| String |
customSpeechModelId()
Get the custom |
| String |
customVoiceDeploymentId()
Get the custom |
|
static
Direct |
fromJson(JsonReader jsonReader)
Reads an instance of Direct |
| Boolean |
isDefaultBotForCogSvcAccount()
Get the is |
| Boolean |
isEnabled()
Get the is |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Direct |
withCognitiveServiceRegion(String cognitiveServiceRegion)
Set the cognitive |
|
Direct |
withCognitiveServiceResourceId(String cognitiveServiceResourceId)
Set the cognitive |
|
Direct |
withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)
Set the cognitive |
|
Direct |
withCustomSpeechModelId(String customSpeechModelId)
Set the custom |
|
Direct |
withCustomVoiceDeploymentId(String customVoiceDeploymentId)
Set the custom |
|
Direct |
withIsDefaultBotForCogSvcAccount(Boolean isDefaultBotForCogSvcAccount)
Set the is |
|
Direct |
withIsEnabled(Boolean isEnabled)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
DirectLineSpeechChannelProperties
public DirectLineSpeechChannelProperties()
Creates an instance of DirectLineSpeechChannelProperties class.
Method Details
cognitiveServiceRegion
public String cognitiveServiceRegion()
Get the cognitiveServiceRegion property: The cognitive service region with this channel registration.
Returns:
cognitiveServiceResourceId
public String cognitiveServiceResourceId()
Get the cognitiveServiceResourceId property: The cognitive service id with this channel registration.
Returns:
cognitiveServiceSubscriptionKey
public String cognitiveServiceSubscriptionKey()
Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.
Returns:
customSpeechModelId
public String customSpeechModelId()
Get the customSpeechModelId property: Custom voice deployment id (optional).
Returns:
customVoiceDeploymentId
public String customVoiceDeploymentId()
Get the customVoiceDeploymentId property: Custom speech model id (optional).
Returns:
fromJson
public static DirectLineSpeechChannelProperties fromJson(JsonReader jsonReader)
Reads an instance of DirectLineSpeechChannelProperties from the JsonReader.
Parameters:
Returns:
Throws:
isDefaultBotForCogSvcAccount
public Boolean isDefaultBotForCogSvcAccount()
Get the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.
Returns:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Whether this channel is enabled or not.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCognitiveServiceRegion
public DirectLineSpeechChannelProperties withCognitiveServiceRegion(String cognitiveServiceRegion)
Set the cognitiveServiceRegion property: The cognitive service region with this channel registration.
Parameters:
Returns:
withCognitiveServiceResourceId
public DirectLineSpeechChannelProperties withCognitiveServiceResourceId(String cognitiveServiceResourceId)
Set the cognitiveServiceResourceId property: The cognitive service id with this channel registration.
Parameters:
Returns:
withCognitiveServiceSubscriptionKey
public DirectLineSpeechChannelProperties withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)
Set the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.
Parameters:
Returns:
withCustomSpeechModelId
public DirectLineSpeechChannelProperties withCustomSpeechModelId(String customSpeechModelId)
Set the customSpeechModelId property: Custom voice deployment id (optional).
Parameters:
Returns:
withCustomVoiceDeploymentId
public DirectLineSpeechChannelProperties withCustomVoiceDeploymentId(String customVoiceDeploymentId)
Set the customVoiceDeploymentId property: Custom speech model id (optional).
Parameters:
Returns:
withIsDefaultBotForCogSvcAccount
public DirectLineSpeechChannelProperties withIsDefaultBotForCogSvcAccount(Boolean isDefaultBotForCogSvcAccount)
Set the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.
Parameters:
Returns:
withIsEnabled
public DirectLineSpeechChannelProperties withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled or not.
Parameters:
Returns: