public static class AddWordsOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
AddWordsOptions.Builder()
Instantiates a new builder.
|
AddWordsOptions.Builder(java.lang.String customizationId,
java.util.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(java.lang.String customizationId)
Set the customizationId.
|
AddWordsOptions.Builder |
words(java.util.List<Word> words)
Set the words.
|
AddWordsOptions.Builder |
words(Words words)
Set the words.
|
public AddWordsOptions.Builder()
public AddWordsOptions.Builder(java.lang.String customizationId, java.util.List<Word> words)
customizationId
- the customizationIdwords
- the wordspublic AddWordsOptions build()
public AddWordsOptions.Builder addWord(Word word)
word
- the new wordpublic AddWordsOptions.Builder customizationId(java.lang.String customizationId)
customizationId
- the customizationIdpublic AddWordsOptions.Builder words(java.util.List<Word> words)
words
- the wordspublic AddWordsOptions.Builder words(Words words)
words
- the words