Class QueryRulesetListItem
java.lang.Object
co.elastic.clients.elasticsearch.query_rules.list_rulesets.QueryRulesetListItem
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryRulesetListItem>Json deserializer forQueryRulesetListItem -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryRulesetListItemRequired - A map of criteria type (for example,exact) to the number of rules of that type.final StringRequired - A unique identifier for the ruleset.final intRequired - The number of rules associated with the ruleset.Required - A map of rule type (for example,pinned) to the number of rules of that type.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryRulesetListItem
-
-
Method Details
-
of
public static QueryRulesetListItem of(Function<QueryRulesetListItem.Builder, ObjectBuilder<QueryRulesetListItem>> fn) -
rulesetId
Required - A unique identifier for the ruleset.API name:
ruleset_id -
ruleTotalCount
public final int ruleTotalCount()Required - The number of rules associated with the ruleset.API name:
rule_total_count -
ruleCriteriaTypesCounts
Required - A map of criteria type (for example,exact) to the number of rules of that type.NOTE: The counts in
rule_criteria_types_countsmay be larger than the value ofrule_total_countbecause a rule may have multiple criteria.API name:
rule_criteria_types_counts -
ruleTypeCounts
Required - A map of rule type (for example,pinned) to the number of rules of that type.API name:
rule_type_counts -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupQueryRulesetListItemDeserializer
protected static void setupQueryRulesetListItemDeserializer(ObjectDeserializer<QueryRulesetListItem.Builder> op)
-