Class GsubProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<GsubProcessor.Builder>
org.opensearch.client.opensearch.ingest.GsubProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<GsubProcessor.Builder,,GsubProcessor> MutableBuilder<GsubProcessor.Builder,,GsubProcessor> ObjectBuilder<GsubProcessor>
- Enclosing class:
GsubProcessor
public static class GsubProcessor.Builder
extends ProcessorBase.AbstractBuilder<GsubProcessor.Builder>
implements CopyableBuilder<GsubProcessor.Builder,GsubProcessor>
Builder for
GsubProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGsubProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GsubProcessor.BuilderRequired - API name:fieldfinal 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) API name:target_fieldMethods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, onFailure, onFailure, onFailure, tagMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GsubProcessor.Builder,GsubProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<GsubProcessor.Builder>
-
field
Required - 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
API name:target_field -
build
Builds aGsubProcessor.- Specified by:
buildin interfaceObjectBuilder<GsubProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-