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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public AddWordOptions build()
      Builds a AddWordOptions.
      Returns:
      the new AddWordOptions instance
    • customizationId

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

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

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

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

      public AddWordOptions.Builder translation​(Translation translation)
      Set the translation.
      Parameters:
      translation - the translation
      Returns:
      the AddWordOptions builder