Class Analyzer.Builder

java.lang.Object
com.ibm.cloud.cloudant.v1.model.Analyzer.Builder
Enclosing class:
Analyzer

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

    • Builder

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

    • build

      public Analyzer build()
      Builds a Analyzer.
      Returns:
      the new Analyzer instance
    • addStopwords

      public Analyzer.Builder addStopwords(String stopwords)
      Adds a new element to stopwords.
      Parameters:
      stopwords - the new element to be added
      Returns:
      the Analyzer builder
    • name

      public Analyzer.Builder name(String name)
      Set the name.
      Parameters:
      name - the name
      Returns:
      the Analyzer builder
    • stopwords

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