Class NluEnrichmentSentiment.Builder

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

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

    • Builder

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

    • build

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

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

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

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