Class TestGrokPatternRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<TestGrokPatternRequest.Builder>
co.elastic.clients.elasticsearch.text_structure.TestGrokPatternRequest.Builder
- All Implemented Interfaces:
WithJson<TestGrokPatternRequest.Builder>,ObjectBuilder<TestGrokPatternRequest>
- Enclosing class:
- TestGrokPatternRequest
public static class TestGrokPatternRequest.Builder
extends RequestBase.AbstractBuilder<TestGrokPatternRequest.Builder>
implements ObjectBuilder<TestGrokPatternRequest>
Builder for
TestGrokPatternRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTestGrokPatternRequest.ecsCompatibility(String value) The mode of compatibility with ECS compliant Grok patterns.grokPattern(String value) Required - The Grok pattern to run on the text.protected TestGrokPatternRequest.Builderself()Required - The lines of text to run the Grok pattern on.Required - The lines of text to run the Grok pattern on.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
-
ecsCompatibility
The mode of compatibility with ECS compliant Grok patterns. Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. Valid values aredisabledandv1.API name:
ecs_compatibility -
grokPattern
Required - The Grok pattern to run on the text.API name:
grok_pattern -
text
Required - The lines of text to run the Grok pattern on.API name:
textAdds all elements of
listtotext. -
text
Required - The lines of text to run the Grok pattern on.API name:
textAdds one or more values to
text. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<TestGrokPatternRequest.Builder>
-
build
Builds aTestGrokPatternRequest.- Specified by:
buildin interfaceObjectBuilder<TestGrokPatternRequest>- Throws:
NullPointerException- if some of the required fields are null.
-