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 (disabled or v1, default: disabled).grokPattern
(String value) Required - Grok pattern to run on the text.protected TestGrokPatternRequest.Builder
self()
Required - Lines of text to run the Grok pattern on.Required - 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 (disabled or v1, default: disabled).API name:
ecs_compatibility
-
grokPattern
Required - Grok pattern to run on the text.API name:
grok_pattern
-
text
Required - Lines of text to run the Grok pattern on.API name:
text
Adds all elements of
list
totext
. -
text
Required - 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.
-