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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public Translation build()
      Builds a Translation.
      Returns:
      the new Translation instance
    • translation

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

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