java.lang.Object
co.elastic.clients.elasticsearch.query_rules.list_rulesets.QueryRulesetListItem
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class QueryRulesetListItem extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • rulesetId

      public final String 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

      public final Map<String,Integer> 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_counts may be larger than the value of rule_total_count because a rule may have multiple criteria.

      API name: rule_criteria_types_counts

    • ruleTypeCounts

      public final Map<String,Integer> ruleTypeCounts()
      Required - A map of rule type (for example, pinned) to the number of rules of that type.

      API name: rule_type_counts

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupQueryRulesetListItemDeserializer

      protected static void setupQueryRulesetListItemDeserializer(ObjectDeserializer<QueryRulesetListItem.Builder> op)