Class AddWordsOptions.Builder
java.lang.Object
com.ibm.watson.text_to_speech.v1.model.AddWordsOptions.Builder
- Enclosing class:
- AddWordsOptions
public static class AddWordsOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description AddWordsOptions.Builder
addWord(Word word)
Adds an word to words.AddWordsOptions
build()
Builds a AddWordsOptions.AddWordsOptions.Builder
customizationId(String customizationId)
Set the customizationId.AddWordsOptions.Builder
words(Words words)
Set the words.AddWordsOptions.Builder
words(List<Word> words)
Set the words.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
customizationId
- the customizationIdwords
- the words
-
-
Method Details
-
build
Builds a AddWordsOptions.- Returns:
- the new AddWordsOptions instance
-
addWord
Adds an word to words.- Parameters:
word
- the new word- Returns:
- the AddWordsOptions builder
-
customizationId
Set the customizationId.- Parameters:
customizationId
- the customizationId- Returns:
- the AddWordsOptions builder
-
words
Set the words. Existing words will be replaced.- Parameters:
words
- the words- Returns:
- the AddWordsOptions builder
-
words
Set the words.- Parameters:
words
- the words- Returns:
- the AddWordsOptions builder
-