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