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 Summary
-
Method Summary
Modifier and Type Method Description UpdateCustomModelOptions.Builder
addWord(Word word)
Adds an word to words.UpdateCustomModelOptions
build()
Builds a UpdateCustomModelOptions.UpdateCustomModelOptions.Builder
customizationId(String customizationId)
Set the customizationId.UpdateCustomModelOptions.Builder
description(String description)
Set the description.UpdateCustomModelOptions.Builder
name(String name)
Set the name.UpdateCustomModelOptions.Builder
words(List<Word> words)
Set the words.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
customizationId
- the customizationId
-
-
Method Details
-
build
Builds a UpdateCustomModelOptions.- Returns:
- the new UpdateCustomModelOptions instance
-
addWord
Adds an word to words.- Parameters:
word
- the new word- Returns:
- the UpdateCustomModelOptions builder
-
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
Set the description.- Parameters:
description
- the description- Returns:
- the UpdateCustomModelOptions builder
-
words
Set the words. Existing words will be replaced.- Parameters:
words
- the words- Returns:
- the UpdateCustomModelOptions builder
-