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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMatchedText.final MatchedText.Builderfields(String key, List<MatchedField> value) API name:fieldsfinal MatchedText.Builderfields(Map<String, List<MatchedField>> map) API name:fieldsfinal MatchedText.Buildermatched(boolean value) Required - API name:matchedprotected MatchedText.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
-
matched
Required - API name:matched -
fields
API name:fieldsAdds all entries of
maptofields. -
fields
API name:fieldsAdds an entry to
fields. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<MatchedText.Builder>
-
build
Builds aMatchedText.- Specified by:
buildin interfaceObjectBuilder<MatchedText>- Throws:
NullPointerException- if some of the required fields are null.
-