Class KeywordsOptions.Builder

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

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

    • Builder

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

    • build

      public KeywordsOptions build()
      Builds a KeywordsOptions.
      Returns:
      the new KeywordsOptions instance
    • limit

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

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

      public KeywordsOptions.Builder emotion​(Boolean emotion)
      Set the emotion.
      Parameters:
      emotion - the emotion
      Returns:
      the KeywordsOptions builder