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.BuilderRequired - The field to be redactedfinal RedactProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.final RedactProcessor.BuilderpatternDefinitions(String key, String value) API name:pattern_definitionsfinal RedactProcessor.BuilderpatternDefinitions(Map<String, String> map) API name:pattern_definitionsfinal RedactProcessor.BuilderRequired - A list of grok expressions to match and redact named captures withfinal RedactProcessor.BuilderRequired - A list of grok expressions to match and redact named captures withfinal RedactProcessor.BuilderStart a redacted section with this tokenprotected RedactProcessor.Builderself()final RedactProcessor.BuilderskipIfUnlicensed(Boolean value) Iftrueand the current license does not support running redact processors, then the processor quietly exits without modifying the documentfinal RedactProcessor.BuilderEnd a redacted section with this tokenfinal RedactProcessor.BuildertraceRedact(Boolean value) Iftruethen ingest metadata_ingest._redact._is_redactedis set totrueif the document has been redactedMethods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods 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
-
field
Required - The field to be redactedAPI name:
field -
patterns
Required - A list of grok expressions to match and redact named captures withAPI name:
patternsAdds all elements of
listtopatterns. -
patterns
Required - A list of grok expressions to match and redact named captures withAPI name:
patternsAdds one or more values to
patterns. -
patternDefinitions
API name:pattern_definitionsAdds all entries of
maptopatternDefinitions. -
patternDefinitions
API name:pattern_definitionsAdds 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
Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.API name:
ignore_missing -
skipIfUnlicensed
Iftrueand the current license does not support running redact processors, then the processor quietly exits without modifying the documentAPI name:
skip_if_unlicensed -
traceRedact
Iftruethen ingest metadata_ingest._redact._is_redactedis set totrueif the document has been redactedAPI name:
trace_redact -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<RedactProcessor.Builder>
-
build
Builds aRedactProcessor.- Specified by:
buildin interfaceObjectBuilder<RedactProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-