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