Class AddWordsOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String customizationId, List<CustomWord> words)
      Instantiates a new builder with required properties.
      Parameters:
      customizationId - the customizationId
      words - the words
  • Method Details

    • build

      public AddWordsOptions build()
      Builds a AddWordsOptions.
      Returns:
      the new AddWordsOptions instance
    • addWords

      public AddWordsOptions.Builder addWords​(CustomWord words)
      Adds an words to words.
      Parameters:
      words - the new words
      Returns:
      the AddWordsOptions builder
    • customizationId

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

      public AddWordsOptions.Builder words​(List<CustomWord> words)
      Set the words. Existing words will be replaced.
      Parameters:
      words - the words
      Returns:
      the AddWordsOptions builder