public static class AddWordOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String customizationId,
java.lang.String word,
java.lang.String translation)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddWordOptions |
build()
Builds a AddWordOptions.
|
AddWordOptions.Builder |
customizationId(java.lang.String customizationId)
Set the customizationId.
|
AddWordOptions.Builder |
partOfSpeech(java.lang.String partOfSpeech)
Set the partOfSpeech.
|
AddWordOptions.Builder |
translation(java.lang.String translation)
Set the translation.
|
AddWordOptions.Builder |
translation(Translation translation)
Set the translation.
|
AddWordOptions.Builder |
word(java.lang.String word)
Set the word.
|
public Builder()
public Builder(java.lang.String customizationId, java.lang.String word, java.lang.String translation)
customizationId
- the customizationIdword
- the wordtranslation
- the translationpublic AddWordOptions build()
public AddWordOptions.Builder customizationId(java.lang.String customizationId)
customizationId
- the customizationIdpublic AddWordOptions.Builder word(java.lang.String word)
word
- the wordpublic AddWordOptions.Builder translation(java.lang.String translation)
translation
- the translationpublic AddWordOptions.Builder partOfSpeech(java.lang.String partOfSpeech)
partOfSpeech
- the partOfSpeechpublic AddWordOptions.Builder translation(Translation translation)
translation
- the translation