Class NluEnrichmentEntities.Builder

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

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

    • Builder

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

    • build

      public NluEnrichmentEntities build()
      Builds a NluEnrichmentEntities.
      Returns:
      the new NluEnrichmentEntities instance
    • sentiment

      public NluEnrichmentEntities.Builder sentiment​(Boolean sentiment)
      Set the sentiment.
      Parameters:
      sentiment - the sentiment
      Returns:
      the NluEnrichmentEntities builder
    • emotion

      public NluEnrichmentEntities.Builder emotion​(Boolean emotion)
      Set the emotion.
      Parameters:
      emotion - the emotion
      Returns:
      the NluEnrichmentEntities builder
    • limit

      public NluEnrichmentEntities.Builder limit​(long limit)
      Set the limit.
      Parameters:
      limit - the limit
      Returns:
      the NluEnrichmentEntities builder
    • mentions

      public NluEnrichmentEntities.Builder mentions​(Boolean mentions)
      Set the mentions.
      Parameters:
      mentions - the mentions
      Returns:
      the NluEnrichmentEntities builder
    • mentionTypes

      public NluEnrichmentEntities.Builder mentionTypes​(Boolean mentionTypes)
      Set the mentionTypes.
      Parameters:
      mentionTypes - the mentionTypes
      Returns:
      the NluEnrichmentEntities builder
    • sentenceLocations

      public NluEnrichmentEntities.Builder sentenceLocations​(Boolean sentenceLocations)
      Set the sentenceLocations.
      Parameters:
      sentenceLocations - the sentenceLocations
      Returns:
      the NluEnrichmentEntities builder
    • model

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