public static class AddWordsOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String customizationId,
List<Word> words)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddWordsOptions.Builder |
addWord(Word word)
Adds an word to words.
|
AddWordsOptions |
build()
Builds a AddWordsOptions.
|
AddWordsOptions.Builder |
customizationId(String customizationId)
Set the customizationId.
|
AddWordsOptions.Builder |
words(List<Word> words)
Set the words.
|
AddWordsOptions.Builder |
words(Words words)
Set the words.
|
public AddWordsOptions build()
public AddWordsOptions.Builder addWord(Word word)
word
- the new wordpublic AddWordsOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic AddWordsOptions.Builder words(List<Word> words)
words
- the wordspublic AddWordsOptions.Builder words(Words words)
words
- the wordsCopyright © 2022 IBM Cloud. All rights reserved.