Class Utterance.Builder

java.lang.Object
com.ibm.watson.tone_analyzer.v3.model.Utterance.Builder
Enclosing class:
Utterance

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public Utterance build()
      Builds a Utterance.
      Returns:
      the new Utterance instance
    • text

      public Utterance.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the Utterance builder
    • user

      public Utterance.Builder user​(String user)
      Set the user.
      Parameters:
      user - the user
      Returns:
      the Utterance builder