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