Package com.ibm.cloud.cloudant.v1.model
Class Analyzer.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.Analyzer.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Analyzer.Builder
addStopwords(String stopwords)
Adds an stopwords to stopwords.Analyzer
build()
Builds a Analyzer.Analyzer.Builder
name(String name)
Set the name.Analyzer.Builder
stopwords(List<String> stopwords)
Set the stopwords.
-
-
-
Method Detail
-
build
public Analyzer build()
Builds a Analyzer.- Returns:
- the new Analyzer instance
-
addStopwords
public Analyzer.Builder addStopwords(String stopwords)
Adds an stopwords to stopwords.- Parameters:
stopwords
- the new stopwords- 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
-
-