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 forPutRuleRequest
static final Endpoint<PutRuleRequest,
PutRuleResponse, ErrorResponse> Endpoint "query_rules.put_rule
". -
Method Summary
Modifier and TypeMethodDescriptionfinal QueryRuleActions
actions()
Required - API name:actions
final List<QueryRuleCriteria>
criteria()
Required - API name:criteria
static PutRuleRequest
final Integer
priority()
API name:priority
final String
ruleId()
Required - The unique identifier of the query rule within the specified ruleset to be created or updatedfinal String
Required - The unique identifier of the query ruleset containing the rule to be created or updatedvoid
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final QueryRuleType
type()
Required - API name:type
Methods 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutRuleRequestDeserializer
protected static void setupPutRuleRequestDeserializer(ObjectDeserializer<PutRuleRequest.Builder> op)
-