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 Summary
ConstructorsConstructorDescriptionCreates an instance of DirectLineSpeechChannelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the cognitiveServiceRegion property: The cognitive service region with this channel registration.Get the cognitiveServiceResourceId property: The cognitive service id 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).fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DirectLineSpeechChannelProperties from the JsonReader.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCognitiveServiceRegion(String cognitiveServiceRegion) Set the cognitiveServiceRegion property: The cognitive service region with this channel registration.withCognitiveServiceResourceId(String cognitiveServiceResourceId) Set the cognitiveServiceResourceId property: The cognitive service id 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DirectLineSpeechChannelProperties
public DirectLineSpeechChannelProperties()Creates an instance of DirectLineSpeechChannelProperties class.
-
-
Method Details
-
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-