Class UpdateCustomModelOptions.Builder

java.lang.Object
com.ibm.watson.text_to_speech.v1.model.UpdateCustomModelOptions.Builder
Enclosing class:
UpdateCustomModelOptions

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public UpdateCustomModelOptions build()
      Builds a UpdateCustomModelOptions.
      Returns:
      the new UpdateCustomModelOptions instance
    • addWord

      public UpdateCustomModelOptions.Builder addWord​(Word word)
      Adds an word to words.
      Parameters:
      word - the new word
      Returns:
      the UpdateCustomModelOptions builder
    • customizationId

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

      Set the name.
      Parameters:
      name - the name
      Returns:
      the UpdateCustomModelOptions builder
    • description

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

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