public static class AddWordOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String customizationId,
String word,
String translation)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddWordOptions |
build()
Builds a AddWordOptions.
|
AddWordOptions.Builder |
customizationId(String customizationId)
Set the customizationId.
|
AddWordOptions.Builder |
partOfSpeech(String partOfSpeech)
Set the partOfSpeech.
|
AddWordOptions.Builder |
translation(String translation)
Set the translation.
|
AddWordOptions.Builder |
translation(Translation translation)
Set the translation.
|
AddWordOptions.Builder |
word(String word)
Set the word.
|
public AddWordOptions build()
public AddWordOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic AddWordOptions.Builder word(String word)
word
- the wordpublic AddWordOptions.Builder translation(String translation)
translation
- the translationpublic AddWordOptions.Builder partOfSpeech(String partOfSpeech)
partOfSpeech
- the partOfSpeechpublic AddWordOptions.Builder translation(Translation translation)
translation
- the translationCopyright © 2024 IBM Cloud. All rights reserved.