public static class CustomWord.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and 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.
|
public CustomWord build()
public CustomWord.Builder addSoundsLike(String soundsLike)
soundsLike
- the new soundsLikepublic CustomWord.Builder word(String word)
word
- the wordpublic CustomWord.Builder soundsLike(List<String> soundsLike)
soundsLike
- the soundsLikepublic CustomWord.Builder displayAs(String displayAs)
displayAs
- the displayAsCopyright © 2022 IBM Cloud. All rights reserved.