Class CustomWord.Builder

java.lang.Object
com.ibm.watson.speech_to_text.v1.model.CustomWord.Builder
Enclosing class:
CustomWord

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

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public CustomWord build()
      Builds a CustomWord.
      Returns:
      the new CustomWord instance
    • addSoundsLike

      public CustomWord.Builder addSoundsLike​(String soundsLike)
      Adds an soundsLike to soundsLike.
      Parameters:
      soundsLike - the new soundsLike
      Returns:
      the CustomWord builder
    • word

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

      public CustomWord.Builder soundsLike​(List<String> soundsLike)
      Set the soundsLike. Existing soundsLike will be replaced.
      Parameters:
      soundsLike - the soundsLike
      Returns:
      the CustomWord builder
    • displayAs

      public CustomWord.Builder displayAs​(String displayAs)
      Set the displayAs.
      Parameters:
      displayAs - the displayAs
      Returns:
      the CustomWord builder