Class PromptMetadata.Builder
java.lang.Object
com.ibm.watson.text_to_speech.v1.model.PromptMetadata.Builder
- Enclosing class:
- PromptMetadata
public static class PromptMetadata.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description PromptMetadata
build()
Builds a PromptMetadata.PromptMetadata.Builder
promptText(String promptText)
Set the promptText.PromptMetadata.Builder
speakerId(String speakerId)
Set the speakerId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
promptText
- the promptText
-
-
Method Details
-
build
Builds a PromptMetadata.- Returns:
- the new PromptMetadata instance
-
promptText
Set the promptText.- Parameters:
promptText
- the promptText- Returns:
- the PromptMetadata builder
-
speakerId
Set the speakerId.- Parameters:
speakerId
- the speakerId- Returns:
- the PromptMetadata builder
-