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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public PromptMetadata build()
      Builds a PromptMetadata.
      Returns:
      the new PromptMetadata instance
    • promptText

      public PromptMetadata.Builder promptText​(String promptText)
      Set the promptText.
      Parameters:
      promptText - the promptText
      Returns:
      the PromptMetadata builder
    • speakerId

      public PromptMetadata.Builder speakerId​(String speakerId)
      Set the speakerId.
      Parameters:
      speakerId - the speakerId
      Returns:
      the PromptMetadata builder