Class EmotionOptions.Builder

java.lang.Object
com.ibm.watson.natural_language_understanding.v1.model.EmotionOptions.Builder
Enclosing class:
EmotionOptions

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

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public EmotionOptions build()
      Builds a EmotionOptions.
      Returns:
      the new EmotionOptions instance
    • addTargets

      public EmotionOptions.Builder addTargets​(String targets)
      Adds an targets to targets.
      Parameters:
      targets - the new targets
      Returns:
      the EmotionOptions builder
    • document

      public EmotionOptions.Builder document​(Boolean document)
      Set the document.
      Parameters:
      document - the document
      Returns:
      the EmotionOptions builder
    • targets

      public EmotionOptions.Builder targets​(List<String> targets)
      Set the targets. Existing targets will be replaced.
      Parameters:
      targets - the targets
      Returns:
      the EmotionOptions builder