Share via


DirectLineSpeechChannelProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.DirectLineSpeechChannelProperties

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 DirectLineSpeechChannelProperties class.

Method Summary

Modifier and Type Method and Description
String cognitiveServiceRegion()

Get the cognitiveServiceRegion property: The cognitive service region with this channel registration.

String cognitiveServiceResourceId()

Get the cognitiveServiceResourceId property: The cognitive service id with this channel registration.

String cognitiveServiceSubscriptionKey()

Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.

String customSpeechModelId()

Get the customSpeechModelId property: Custom voice deployment id (optional).

String customVoiceDeploymentId()

Get the customVoiceDeploymentId property: Custom speech model id (optional).

static DirectLineSpeechChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of DirectLineSpeechChannelProperties from the JsonReader.

Boolean isDefaultBotForCogSvcAccount()

Get the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.

Boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled or not.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DirectLineSpeechChannelProperties withCognitiveServiceRegion(String cognitiveServiceRegion)

Set the cognitiveServiceRegion property: The cognitive service region with this channel registration.

DirectLineSpeechChannelProperties withCognitiveServiceResourceId(String cognitiveServiceResourceId)

Set the cognitiveServiceResourceId property: The cognitive service id with this channel registration.

DirectLineSpeechChannelProperties withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)

Set the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.

DirectLineSpeechChannelProperties withCustomSpeechModelId(String customSpeechModelId)

Set the customSpeechModelId property: Custom voice deployment id (optional).

DirectLineSpeechChannelProperties withCustomVoiceDeploymentId(String customVoiceDeploymentId)

Set the customVoiceDeploymentId property: Custom speech model id (optional).

DirectLineSpeechChannelProperties withIsDefaultBotForCogSvcAccount(Boolean isDefaultBotForCogSvcAccount)

Set the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.

DirectLineSpeechChannelProperties withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Whether this channel is enabled or not.

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:

the cognitiveServiceRegion value.

cognitiveServiceResourceId

public String cognitiveServiceResourceId()

Get the cognitiveServiceResourceId property: The cognitive service id with this channel registration.

Returns:

the cognitiveServiceResourceId value.

cognitiveServiceSubscriptionKey

public String cognitiveServiceSubscriptionKey()

Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key to use with this channel registration.

Returns:

the cognitiveServiceSubscriptionKey value.

customSpeechModelId

public String customSpeechModelId()

Get the customSpeechModelId property: Custom voice deployment id (optional).

Returns:

the customSpeechModelId value.

customVoiceDeploymentId

public String customVoiceDeploymentId()

Get the customVoiceDeploymentId property: Custom speech model id (optional).

Returns:

the customVoiceDeploymentId value.

fromJson

public static DirectLineSpeechChannelProperties fromJson(JsonReader jsonReader)

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.

isDefaultBotForCogSvcAccount

public Boolean isDefaultBotForCogSvcAccount()

Get the isDefaultBotForCogSvcAccount property: Make this a default bot for chosen cognitive service account.

Returns:

the isDefaultBotForCogSvcAccount value.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled or not.

Returns:

the isEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

cognitiveServiceRegion - the cognitiveServiceRegion value to set.

Returns:

the DirectLineSpeechChannelProperties object itself.

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.

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.

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.

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.

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.

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.

Applies to