Class SentimentOptions.Builder

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

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

    • Builder

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

    • build

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

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

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

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

      public SentimentOptions.Builder model​(String model)
      Set the model.
      Parameters:
      model - the model
      Returns:
      the SentimentOptions builder