Class Word.Builder
java.lang.Object
com.ibm.watson.text_to_speech.v1.model.Word.Builder
- Enclosing class:
- Word
public static class Word.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Word
build()
Builds a Word.Word.Builder
partOfSpeech(String partOfSpeech)
Set the partOfSpeech.Word.Builder
translation(String translation)
Set the translation.Word.Builder
word(String word)
Set the word.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
word
- the wordtranslation
- the translation
-
-
Method Details
-
build
Builds a Word.- Returns:
- the new Word instance
-
word
Set the word.- Parameters:
word
- the word- Returns:
- the Word builder
-
translation
Set the translation.- Parameters:
translation
- the translation- Returns:
- the Word builder
-
partOfSpeech
Set the partOfSpeech.- Parameters:
partOfSpeech
- the partOfSpeech- Returns:
- the Word builder
-