Class MatchedText.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MatchedText.Builder>
co.elastic.clients.elasticsearch.text_structure.test_grok_pattern.MatchedText.Builder
- All Implemented Interfaces:
WithJson<MatchedText.Builder>
,ObjectBuilder<MatchedText>
- Enclosing class:
- MatchedText
public static class MatchedText.Builder
extends WithJsonObjectBuilderBase<MatchedText.Builder>
implements ObjectBuilder<MatchedText>
Builder for
MatchedText
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aMatchedText
.final MatchedText.Builder
fields
(String key, List<MatchedField> value) API name:fields
final MatchedText.Builder
fields
(Map<String, List<MatchedField>> map) API name:fields
final MatchedText.Builder
matched
(boolean value) Required - API name:matched
protected MatchedText.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
-
matched
Required - API name:matched
-
fields
API name:fields
Adds all entries of
map
tofields
. -
fields
API name:fields
Adds an entry to
fields
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<MatchedText.Builder>
-
build
Builds aMatchedText
.- Specified by:
build
in interfaceObjectBuilder<MatchedText>
- Throws:
NullPointerException
- if some of the required fields are null.
-