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.Builder
The documents to apply the rule to.final QueryRuleActions.Builder
The documents to apply the rule to.final QueryRuleActions.Builder
The documents to apply the rule to.final QueryRuleActions.Builder
The unique document IDs of the documents to apply the rule to.final QueryRuleActions.Builder
The unique document IDs of the documents to apply the rule to.protected QueryRuleActions.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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 ofids
ordocs
may be specified and at least one must be specified.API name:
ids
Adds all elements of
list
toids
. -
ids
The unique document IDs of the documents to apply the rule to. Only one ofids
ordocs
may be specified and at least one must be specified.API name:
ids
Adds one or more values to
ids
. -
docs
The documents to apply the rule to. Only one ofids
ordocs
may 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:
docs
Adds all elements of
list
todocs
. -
docs
The documents to apply the rule to. Only one ofids
ordocs
may 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:
docs
Adds one or more values to
docs
. -
docs
The documents to apply the rule to. Only one ofids
ordocs
may 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:
docs
Adds a value to
docs
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<QueryRuleActions.Builder>
-
build
Builds aQueryRuleActions
.- Specified by:
build
in interfaceObjectBuilder<QueryRuleActions>
- Throws:
NullPointerException
- if some of the required fields are null.
-