Class TestRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<TestRequest.Builder>
co.elastic.clients.elasticsearch.query_rules.TestRequest.Builder
- All Implemented Interfaces:
WithJson<TestRequest.Builder>,ObjectBuilder<TestRequest>
- Enclosing class:
- TestRequest
public static class TestRequest.Builder
extends RequestBase.AbstractBuilder<TestRequest.Builder>
implements ObjectBuilder<TestRequest>
Builder for
TestRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTestRequest.final TestRequest.BuildermatchCriteria(String key, JsonData value) Required - The match criteria to apply to rules in the given query ruleset.final TestRequest.BuildermatchCriteria(Map<String, JsonData> map) Required - The match criteria to apply to rules in the given query ruleset.final TestRequest.BuilderRequired - The unique identifier of the query ruleset to be created or updatedprotected TestRequest.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
-
matchCriteria
Required - The match criteria to apply to rules in the given query ruleset. Match criteria should match the keys defined in thecriteria.metadatafield of the rule.API name:
match_criteriaAdds all entries of
maptomatchCriteria. -
matchCriteria
Required - The match criteria to apply to rules in the given query ruleset. Match criteria should match the keys defined in thecriteria.metadatafield of the rule.API name:
match_criteriaAdds an entry to
matchCriteria. -
rulesetId
Required - The unique identifier of the query ruleset to be created or updatedAPI name:
ruleset_id -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<TestRequest.Builder>
-
build
Builds aTestRequest.- Specified by:
buildin interfaceObjectBuilder<TestRequest>- Throws:
NullPointerException- if some of the required fields are null.
-