Package com.ibm.cloud.cloudant.v1.model
Class SearchIndexDefinition.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.SearchIndexDefinition.Builder
-
- Enclosing class:
- SearchIndexDefinition
public static class SearchIndexDefinition.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchIndexDefinition.Builder
analyzer(AnalyzerConfiguration analyzer)
Set the analyzer.SearchIndexDefinition
build()
Builds a SearchIndexDefinition.SearchIndexDefinition.Builder
index(String index)
Set the index.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String index)
Instantiates a new builder with required properties.- Parameters:
index
- the index
-
-
Method Detail
-
build
public SearchIndexDefinition build()
Builds a SearchIndexDefinition.- Returns:
- the new SearchIndexDefinition instance
-
analyzer
public SearchIndexDefinition.Builder analyzer(AnalyzerConfiguration analyzer)
Set the analyzer.- Parameters:
analyzer
- the analyzer- Returns:
- the SearchIndexDefinition builder
-
index
public SearchIndexDefinition.Builder index(String index)
Set the index.- Parameters:
index
- the index- Returns:
- the SearchIndexDefinition builder
-
-