Class AddCustomPromptOptions.Builder
java.lang.Object
com.ibm.watson.text_to_speech.v1.model.AddCustomPromptOptions.Builder
- Enclosing class:
- AddCustomPromptOptions
public static class AddCustomPromptOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String customizationId, String promptId, PromptMetadata metadata, InputStream file)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description AddCustomPromptOptions
build()
Builds a AddCustomPromptOptions.AddCustomPromptOptions.Builder
customizationId(String customizationId)
Set the customizationId.AddCustomPromptOptions.Builder
file(File file)
Set the file.AddCustomPromptOptions.Builder
file(InputStream file)
Set the file.AddCustomPromptOptions.Builder
metadata(PromptMetadata metadata)
Set the metadata.AddCustomPromptOptions.Builder
promptId(String promptId)
Set the promptId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
customizationId
- the customizationIdpromptId
- the promptIdmetadata
- the metadatafile
- the file
-
-
Method Details
-
build
Builds a AddCustomPromptOptions.- Returns:
- the new AddCustomPromptOptions instance
-
customizationId
Set the customizationId.- Parameters:
customizationId
- the customizationId- Returns:
- the AddCustomPromptOptions builder
-
promptId
Set the promptId.- Parameters:
promptId
- the promptId- Returns:
- the AddCustomPromptOptions builder
-
metadata
Set the metadata.- Parameters:
metadata
- the metadata- Returns:
- the AddCustomPromptOptions builder
-
file
Set the file.- Parameters:
file
- the file- Returns:
- the AddCustomPromptOptions builder
-
file
Set the file.- Parameters:
file
- the file- Returns:
- the AddCustomPromptOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-