public class AddWordsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
AddWordsOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
customizationId |
protected java.util.List<Word> |
words |
Modifier | Constructor and Description |
---|---|
protected |
AddWordsOptions(AddWordsOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
customizationId()
Gets the customizationId.
|
AddWordsOptions.Builder |
newBuilder()
New builder.
|
java.util.List<Word> |
words()
Gets the words.
|
protected java.lang.String customizationId
protected java.util.List<Word> words
protected AddWordsOptions(AddWordsOptions.Builder builder)
public AddWordsOptions.Builder newBuilder()
public java.lang.String customizationId()
The customization ID (GUID) of the custom voice model. You must make the request with credentials for the instance of the service that owns the custom model.
public java.util.List<Word> words()
The **Add custom words** method accepts an array of `Word` objects. Each object provides a word that is to be added or updated for the custom voice model and the word's translation.
The **List custom words** method returns an array of `Word` objects. Each object shows a word and its translation from the custom voice model. The words are listed in alphabetical order, with uppercase letters listed before lowercase letters. The array is empty if the custom model contains no words.