Class SynonymRule.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SynonymRule.Builder>
co.elastic.clients.elasticsearch.synonyms.SynonymRule.Builder
- All Implemented Interfaces:
WithJson<SynonymRule.Builder>
,ObjectBuilder<SynonymRule>
- Enclosing class:
- SynonymRule
public static class SynonymRule.Builder
extends WithJsonObjectBuilderBase<SynonymRule.Builder>
implements ObjectBuilder<SynonymRule>
Builder for
SynonymRule
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSynonymRule
.final SynonymRule.Builder
The identifier for the synonym rule.protected SynonymRule.Builder
self()
final SynonymRule.Builder
Required - The synonyms that conform the synonym rule in Solr format.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
The identifier for the synonym rule. If you do not specify a synonym rule ID when you create a rule, an identifier is created automatically by Elasticsearch.API name:
id
-
synonyms
Required - The synonyms that conform the synonym rule in Solr format.API name:
synonyms
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SynonymRule.Builder>
-
build
Builds aSynonymRule
.- Specified by:
build
in interfaceObjectBuilder<SynonymRule>
- Throws:
NullPointerException
- if some of the required fields are null.
-