Class QueryRulesetListItem.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<QueryRulesetListItem.Builder>
co.elastic.clients.elasticsearch.query_rules.list_rulesets.QueryRulesetListItem.Builder
- All Implemented Interfaces:
WithJson<QueryRulesetListItem.Builder>,ObjectBuilder<QueryRulesetListItem>
- Enclosing class:
- QueryRulesetListItem
public static class QueryRulesetListItem.Builder
extends WithJsonObjectBuilderBase<QueryRulesetListItem.Builder>
implements ObjectBuilder<QueryRulesetListItem>
Builder for
QueryRulesetListItem.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryRulesetListItem.ruleCriteriaTypesCounts(String key, Integer value) Required - A map of criteria type (for example,exact) to the number of rules of that type.Required - A map of criteria type (for example,exact) to the number of rules of that type.Required - A unique identifier for the ruleset.ruleTotalCount(int value) Required - The number of rules associated with the ruleset.ruleTypeCounts(String key, Integer value) Required - A map of rule type (for example,pinned) to the number of rules of that type.ruleTypeCounts(Map<String, Integer> map) Required - A map of rule type (for example,pinned) to the number of rules of that type.protected QueryRulesetListItem.Builderself()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
-
rulesetId
Required - A unique identifier for the ruleset.API name:
ruleset_id -
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_countsAdds all entries of
maptoruleCriteriaTypesCounts. -
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_countsAdds an entry to
ruleCriteriaTypesCounts. -
ruleTypeCounts
Required - A map of rule type (for example,pinned) to the number of rules of that type.API name:
rule_type_countsAdds all entries of
maptoruleTypeCounts. -
ruleTypeCounts
Required - A map of rule type (for example,pinned) to the number of rules of that type.API name:
rule_type_countsAdds an entry to
ruleTypeCounts. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<QueryRulesetListItem.Builder>
-
build
Builds aQueryRulesetListItem.- Specified by:
buildin interfaceObjectBuilder<QueryRulesetListItem>- Throws:
NullPointerException- if some of the required fields are null.
-