Class GsubProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<GsubProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.GsubProcessor.Builder
- All Implemented Interfaces:
WithJson<GsubProcessor.Builder>,ObjectBuilder<GsubProcessor>
- Enclosing class:
- GsubProcessor
public static class GsubProcessor.Builder
extends ProcessorBase.AbstractBuilder<GsubProcessor.Builder>
implements ObjectBuilder<GsubProcessor>
Builder for
GsubProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGsubProcessor.final GsubProcessor.BuilderRequired - The field to apply the replacement to.final GsubProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.final GsubProcessor.BuilderRequired - The pattern to be replaced.final GsubProcessor.Builderreplacement(String value) Required - The string to replace the matching patterns with.protected GsubProcessor.Builderself()final GsubProcessor.BuildertargetField(String value) The field to assign the converted value to By default, thefieldis updated in-place.Methods 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 apply the replacement to.API name:
field -
ignoreMissing
Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.API name:
ignore_missing -
pattern
Required - The pattern to be replaced.API name:
pattern -
replacement
Required - The string to replace the matching patterns with.API name:
replacement -
targetField
The field to assign the converted value to By default, thefieldis updated in-place.API name:
target_field -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<GsubProcessor.Builder>
-
build
Builds aGsubProcessor.- Specified by:
buildin interfaceObjectBuilder<GsubProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-