Class RedactProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<RedactProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.RedactProcessor.Builder
- All Implemented Interfaces:
WithJson<RedactProcessor.Builder>
,ObjectBuilder<RedactProcessor>
- Enclosing class:
- RedactProcessor
public static class RedactProcessor.Builder
extends ProcessorBase.AbstractBuilder<RedactProcessor.Builder>
implements ObjectBuilder<RedactProcessor>
Builder for
RedactProcessor
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aRedactProcessor
.final RedactProcessor.Builder
Required - The field to be redactedfinal RedactProcessor.Builder
ignoreMissing
(Boolean value) Iftrue
andfield
does not exist or isnull
, the processor quietly exits without modifying the document.final RedactProcessor.Builder
patternDefinitions
(String key, String value) API name:pattern_definitions
final RedactProcessor.Builder
patternDefinitions
(Map<String, String> map) API name:pattern_definitions
final RedactProcessor.Builder
Required - A list of grok expressions to match and redact named captures withfinal RedactProcessor.Builder
Required - A list of grok expressions to match and redact named captures withfinal RedactProcessor.Builder
Start a redacted section with this tokenprotected RedactProcessor.Builder
self()
final RedactProcessor.Builder
skipIfUnlicensed
(Boolean value) Iftrue
and the current license does not support running redact processors, then the processor quietly exits without modifying the documentfinal RedactProcessor.Builder
End a redacted section with this tokenfinal RedactProcessor.Builder
traceRedact
(Boolean value) Iftrue
then ingest metadata_ingest._redact._is_redacted
is set totrue
if the document has been redactedMethods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tag
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
-
field
Required - The field to be redactedAPI name:
field
-
patterns
Required - A list of grok expressions to match and redact named captures withAPI name:
patterns
Adds all elements of
list
topatterns
. -
patterns
Required - A list of grok expressions to match and redact named captures withAPI name:
patterns
Adds one or more values to
patterns
. -
patternDefinitions
API name:pattern_definitions
Adds all entries of
map
topatternDefinitions
. -
patternDefinitions
API name:pattern_definitions
Adds an entry to
patternDefinitions
. -
prefix
Start a redacted section with this tokenAPI name:
prefix
-
suffix
End a redacted section with this tokenAPI name:
suffix
-
ignoreMissing
Iftrue
andfield
does not exist or isnull
, the processor quietly exits without modifying the document.API name:
ignore_missing
-
skipIfUnlicensed
Iftrue
and the current license does not support running redact processors, then the processor quietly exits without modifying the documentAPI name:
skip_if_unlicensed
-
traceRedact
Iftrue
then ingest metadata_ingest._redact._is_redacted
is set totrue
if the document has been redactedAPI name:
trace_redact
-
self
- Specified by:
self
in classProcessorBase.AbstractBuilder<RedactProcessor.Builder>
-
build
Builds aRedactProcessor
.- Specified by:
build
in interfaceObjectBuilder<RedactProcessor>
- Throws:
NullPointerException
- if some of the required fields are null.
-