Class PutRuleRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.query_rules.PutRuleRequest
- All Implemented Interfaces:
JsonpSerializable
Creates or updates a query rule within a query ruleset.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutRuleRequest>Json deserializer forPutRuleRequeststatic final Endpoint<PutRuleRequest,PutRuleResponse, ErrorResponse> Endpoint "query_rules.put_rule". -
Method Summary
Modifier and TypeMethodDescriptionfinal QueryRuleActionsactions()Required - API name:actionsfinal List<QueryRuleCriteria>criteria()Required - API name:criteriastatic PutRuleRequestfinal Integerpriority()API name:priorityfinal StringruleId()Required - The unique identifier of the query rule within the specified ruleset to be created or updatedfinal StringRequired - The unique identifier of the query ruleset containing the rule to be created or updatedvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal QueryRuleTypetype()Required - API name:typeMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutRuleRequest -
_ENDPOINT
Endpoint "query_rules.put_rule".
-
-
Method Details
-
of
-
actions
Required - API name:actions -
criteria
Required - API name:criteria -
priority
API name:priority -
ruleId
Required - The unique identifier of the query rule within the specified ruleset to be created or updatedAPI name:
rule_id -
rulesetId
Required - The unique identifier of the query ruleset containing the rule to be created or updatedAPI name:
ruleset_id -
type
Required - API name:type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutRuleRequestDeserializer
protected static void setupPutRuleRequestDeserializer(ObjectDeserializer<PutRuleRequest.Builder> op)
-