Class DeleteSynonymRuleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteSynonymRuleRequest.Builder>
co.elastic.clients.elasticsearch.synonyms.DeleteSynonymRuleRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteSynonymRuleRequest.Builder>,ObjectBuilder<DeleteSynonymRuleRequest>
- Enclosing class:
- DeleteSynonymRuleRequest
public static class DeleteSynonymRuleRequest.Builder
extends RequestBase.AbstractBuilder<DeleteSynonymRuleRequest.Builder>
implements ObjectBuilder<DeleteSynonymRuleRequest>
Builder for
DeleteSynonymRuleRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDeleteSynonymRuleRequest.Iftrue, the request will refresh the analyzers with the deleted synonym rule and wait for the new synonyms to be available before returning.Required - The ID of the synonym rule to delete.protected DeleteSynonymRuleRequest.Builderself()Required - The ID of the synonym set to update.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
-
refresh
Iftrue, the request will refresh the analyzers with the deleted synonym rule and wait for the new synonyms to be available before returning. Iffalse, analyzers will not be reloaded with the deleted synonym ruleAPI name:
refresh -
ruleId
Required - The ID of the synonym rule to delete.API name:
rule_id -
setId
Required - The ID of the synonym set to update.API name:
set_id -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<DeleteSynonymRuleRequest.Builder>
-
build
Builds aDeleteSynonymRuleRequest.- Specified by:
buildin interfaceObjectBuilder<DeleteSynonymRuleRequest>- Throws:
NullPointerException- if some of the required fields are null.
-