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 Wordbuild()Builds a Word.Word.BuilderpartOfSpeech(String partOfSpeech)Set the partOfSpeech.Word.Buildertranslation(String translation)Set the translation.Word.Builderword(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
-