Class CustomWord.Builder
java.lang.Object
com.ibm.watson.speech_to_text.v1.model.CustomWord.Builder
- Enclosing class:
- CustomWord
public static class CustomWord.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description CustomWord.Builder
addSoundsLike(String soundsLike)
Adds an soundsLike to soundsLike.CustomWord
build()
Builds a CustomWord.CustomWord.Builder
displayAs(String displayAs)
Set the displayAs.CustomWord.Builder
soundsLike(List<String> soundsLike)
Set the soundsLike.CustomWord.Builder
word(String word)
Set the word.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a CustomWord.- Returns:
- the new CustomWord instance
-
addSoundsLike
Adds an soundsLike to soundsLike.- Parameters:
soundsLike
- the new soundsLike- Returns:
- the CustomWord builder
-
word
Set the word.- Parameters:
word
- the word- Returns:
- the CustomWord builder
-
soundsLike
Set the soundsLike. Existing soundsLike will be replaced.- Parameters:
soundsLike
- the soundsLike- Returns:
- the CustomWord builder
-
displayAs
Set the displayAs.- Parameters:
displayAs
- the displayAs- Returns:
- the CustomWord builder
-