Class Translation.Builder
java.lang.Object
com.ibm.watson.text_to_speech.v1.model.Translation.Builder
- Enclosing class:
- Translation
public static class Translation.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Translation
build()
Builds a Translation.Translation.Builder
partOfSpeech(String partOfSpeech)
Set the partOfSpeech.Translation.Builder
translation(String translation)
Set the translation.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
translation
- the translation
-
-
Method Details
-
build
Builds a Translation.- Returns:
- the new Translation instance
-
translation
Set the translation.- Parameters:
translation
- the translation- Returns:
- the Translation builder
-
partOfSpeech
Set the partOfSpeech.- Parameters:
partOfSpeech
- the partOfSpeech- Returns:
- the Translation builder
-