Class NluEnrichmentEmotion.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.NluEnrichmentEmotion.Builder
Enclosing class:
NluEnrichmentEmotion

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

    • Builder

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

    • build

      public NluEnrichmentEmotion build()
      Builds a NluEnrichmentEmotion.
      Returns:
      the new NluEnrichmentEmotion instance
    • addTarget

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

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

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