public static class AddWordsOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String customizationId,
List<CustomWord> words)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and 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.
|
public Builder()
public Builder(String customizationId, List<CustomWord> words)
customizationId
- the customizationIdwords
- the wordspublic AddWordsOptions build()
public AddWordsOptions.Builder addWords(CustomWord words)
words
- the new wordspublic AddWordsOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic AddWordsOptions.Builder words(List<CustomWord> words)
words
- the wordsCopyright © 2023 IBM Cloud. All rights reserved.