Class QueryRuleActions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<QueryRuleActions.Builder>
co.elastic.clients.elasticsearch.query_rules.QueryRuleActions.Builder
- All Implemented Interfaces:
WithJson<QueryRuleActions.Builder>,ObjectBuilder<QueryRuleActions>
- Enclosing class:
- QueryRuleActions
public static class QueryRuleActions.Builder
extends WithJsonObjectBuilderBase<QueryRuleActions.Builder>
implements ObjectBuilder<QueryRuleActions>
Builder for
QueryRuleActions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryRuleActions.final QueryRuleActions.BuilderThe documents to apply the rule to.final QueryRuleActions.BuilderThe documents to apply the rule to.final QueryRuleActions.BuilderThe documents to apply the rule to.final QueryRuleActions.BuilderThe unique document IDs of the documents to apply the rule to.final QueryRuleActions.BuilderThe unique document IDs of the documents to apply the rule to.protected QueryRuleActions.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
-
ids
The unique document IDs of the documents to apply the rule to. Only one ofidsordocsmay be specified and at least one must be specified.API name:
idsAdds all elements of
listtoids. -
ids
The unique document IDs of the documents to apply the rule to. Only one ofidsordocsmay be specified and at least one must be specified.API name:
idsAdds one or more values to
ids. -
docs
The documents to apply the rule to. Only one ofidsordocsmay be specified and at least one must be specified. There is a maximum value of 100 documents in a rule. You can specify the following attributes for each document:_index: The index of the document to pin._id: The unique document ID.
API name:
docsAdds all elements of
listtodocs. -
docs
The documents to apply the rule to. Only one ofidsordocsmay be specified and at least one must be specified. There is a maximum value of 100 documents in a rule. You can specify the following attributes for each document:_index: The index of the document to pin._id: The unique document ID.
API name:
docsAdds one or more values to
docs. -
docs
The documents to apply the rule to. Only one ofidsordocsmay be specified and at least one must be specified. There is a maximum value of 100 documents in a rule. You can specify the following attributes for each document:_index: The index of the document to pin._id: The unique document ID.
API name:
docsAdds a value to
docsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<QueryRuleActions.Builder>
-
build
Builds aQueryRuleActions.- Specified by:
buildin interfaceObjectBuilder<QueryRuleActions>- Throws:
NullPointerException- if some of the required fields are null.
-