Class Word.Builder

java.lang.Object
com.ibm.watson.text_to_speech.v1.model.Word.Builder
Enclosing class:
Word

public static class Word.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String word, String translation)
      Instantiates a new builder with required properties.
      Parameters:
      word - the word
      translation - the translation
  • Method Details

    • build

      public Word build()
      Builds a Word.
      Returns:
      the new Word instance
    • word

      public Word.Builder word​(String word)
      Set the word.
      Parameters:
      word - the word
      Returns:
      the Word builder
    • translation

      public Word.Builder translation​(String translation)
      Set the translation.
      Parameters:
      translation - the translation
      Returns:
      the Word builder
    • partOfSpeech

      public Word.Builder partOfSpeech​(String partOfSpeech)
      Set the partOfSpeech.
      Parameters:
      partOfSpeech - the partOfSpeech
      Returns:
      the Word builder