Class Words.Builder
java.lang.Object
com.ibm.watson.text_to_speech.v1.model.Words.Builder
- Enclosing class:
- Words
public static class Words.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Words.Builder
addWord(Word word)
Adds an word to words.Words
build()
Builds a Words.Words.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:
words
- the words
-
-
Method Details
-
build
Builds a Words.- Returns:
- the new Words instance
-
addWord
Adds an word to words.- Parameters:
word
- the new word- Returns:
- the Words builder
-
words
Set the words. Existing words will be replaced.- Parameters:
words
- the words- Returns:
- the Words builder
-