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 AddWordOptionsbuild()Builds a AddWordOptions.AddWordOptions.BuildercustomizationId(String customizationId)Set the customizationId.AddWordOptions.BuilderpartOfSpeech(String partOfSpeech)Set the partOfSpeech.AddWordOptions.Buildertranslation(Translation translation)Set the translation.AddWordOptions.Buildertranslation(String translation)Set the translation.AddWordOptions.Builderword(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
-