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.Builder
self()
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
withJson
Methods 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 aredisabled
andv1
.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:
text
Adds all elements of
list
totext
. -
text
Required - The lines of text to run the Grok pattern on.API name:
text
Adds one or more values to
text
. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<TestGrokPatternRequest.Builder>
-
build
Builds aTestGrokPatternRequest
.- Specified by:
build
in interfaceObjectBuilder<TestGrokPatternRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-