Class AddWordOptions.Builder
java.lang.Object
com.ibm.watson.text_to_speech.v1.model.AddWordOptions.Builder
- Enclosing class:
- AddWordOptions
public static class AddWordOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method 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(Translation translation)
Set the translation.AddWordOptions.Builder
translation(String translation)
Set the translation.AddWordOptions.Builder
word(String word)
Set the word.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
customizationId
- the customizationIdword
- the wordtranslation
- the translation
-
-
Method Details
-
build
Builds a AddWordOptions.- Returns:
- the new AddWordOptions instance
-
customizationId
Set the customizationId.- Parameters:
customizationId
- the customizationId- Returns:
- the AddWordOptions builder
-
word
Set the word.- Parameters:
word
- the word- Returns:
- the AddWordOptions builder
-
translation
Set the translation.- Parameters:
translation
- the translation- Returns:
- the AddWordOptions builder
-
partOfSpeech
Set the partOfSpeech.- Parameters:
partOfSpeech
- the partOfSpeech- Returns:
- the AddWordOptions builder
-
translation
Set the translation.- Parameters:
translation
- the translation- Returns:
- the AddWordOptions builder
-