Class AnalyzerConfiguration.Builder

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

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

    • Builder

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

    • build

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

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

      Set the name.
      Parameters:
      name - the name
      Returns:
      the AnalyzerConfiguration builder
    • stopwords

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

      Set the fields.
      Parameters:
      fields - the fields
      Returns:
      the AnalyzerConfiguration builder