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.BuilderThe identifier for the synonym rule.protected SynonymRule.Builderself()final SynonymRule.BuilderRequired - The synonyms that conform the synonym rule in Solr format.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
selfin classWithJsonObjectBuilderBase<SynonymRule.Builder>
-
build
Builds aSynonymRule.- Specified by:
buildin interfaceObjectBuilder<SynonymRule>- Throws:
NullPointerException- if some of the required fields are null.
-