public static class AddWordOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String customizationId,
String wordName)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddWordOptions.Builder |
addMappingOnly(String mappingOnly)
Adds a new element to mappingOnly.
|
AddWordOptions.Builder |
addSoundsLike(String soundsLike)
Adds a new element to soundsLike.
|
AddWordOptions |
build()
Builds a AddWordOptions.
|
AddWordOptions.Builder |
customizationId(String customizationId)
Set the customizationId.
|
AddWordOptions.Builder |
displayAs(String displayAs)
Set the displayAs.
|
AddWordOptions.Builder |
mappingOnly(List<String> mappingOnly)
Set the mappingOnly.
|
AddWordOptions.Builder |
soundsLike(List<String> soundsLike)
Set the soundsLike.
|
AddWordOptions.Builder |
word(String word)
Set the word.
|
AddWordOptions.Builder |
wordName(String wordName)
Set the wordName.
|
public AddWordOptions build()
public AddWordOptions.Builder addMappingOnly(String mappingOnly)
mappingOnly
- the new element to be addedpublic AddWordOptions.Builder addSoundsLike(String soundsLike)
soundsLike
- the new element to be addedpublic AddWordOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic AddWordOptions.Builder wordName(String wordName)
wordName
- the wordNamepublic AddWordOptions.Builder word(String word)
word
- the wordpublic AddWordOptions.Builder mappingOnly(List<String> mappingOnly)
mappingOnly
- the mappingOnlypublic AddWordOptions.Builder soundsLike(List<String> soundsLike)
soundsLike
- the soundsLikepublic AddWordOptions.Builder displayAs(String displayAs)
displayAs
- the displayAsCopyright © 2024 IBM Cloud. All rights reserved.