Class AnalyzeOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(Features features)
      Instantiates a new builder with required properties.
      Parameters:
      features - the features
  • Method Details

    • build

      public AnalyzeOptions build()
      Builds a AnalyzeOptions.
      Returns:
      the new AnalyzeOptions instance
    • features

      public AnalyzeOptions.Builder features​(Features features)
      Set the features.
      Parameters:
      features - the features
      Returns:
      the AnalyzeOptions builder
    • text

      public AnalyzeOptions.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the AnalyzeOptions builder
    • html

      public AnalyzeOptions.Builder html​(String html)
      Set the html.
      Parameters:
      html - the html
      Returns:
      the AnalyzeOptions builder
    • url

      public AnalyzeOptions.Builder url​(String url)
      Set the url.
      Parameters:
      url - the url
      Returns:
      the AnalyzeOptions builder
    • clean

      public AnalyzeOptions.Builder clean​(Boolean clean)
      Set the clean.
      Parameters:
      clean - the clean
      Returns:
      the AnalyzeOptions builder
    • xpath

      public AnalyzeOptions.Builder xpath​(String xpath)
      Set the xpath.
      Parameters:
      xpath - the xpath
      Returns:
      the AnalyzeOptions builder
    • fallbackToRaw

      public AnalyzeOptions.Builder fallbackToRaw​(Boolean fallbackToRaw)
      Set the fallbackToRaw.
      Parameters:
      fallbackToRaw - the fallbackToRaw
      Returns:
      the AnalyzeOptions builder
    • returnAnalyzedText

      public AnalyzeOptions.Builder returnAnalyzedText​(Boolean returnAnalyzedText)
      Set the returnAnalyzedText.
      Parameters:
      returnAnalyzedText - the returnAnalyzedText
      Returns:
      the AnalyzeOptions builder
    • language

      public AnalyzeOptions.Builder language​(String language)
      Set the language.
      Parameters:
      language - the language
      Returns:
      the AnalyzeOptions builder
    • limitTextCharacters

      public AnalyzeOptions.Builder limitTextCharacters​(long limitTextCharacters)
      Set the limitTextCharacters.
      Parameters:
      limitTextCharacters - the limitTextCharacters
      Returns:
      the AnalyzeOptions builder