Class AddWordOptions.Builder

java.lang.Object
com.ibm.watson.speech_to_text.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 wordName)
      Instantiates a new builder with required properties.
      Parameters:
      customizationId - the customizationId
      wordName - the wordName
  • Method Details

    • build

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

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

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

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

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

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

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