Class AppendProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<AppendProcessor.Builder>
org.opensearch.client.opensearch.ingest.AppendProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<AppendProcessor.Builder,,AppendProcessor> MutableBuilder<AppendProcessor.Builder,,AppendProcessor> ObjectBuilder<AppendProcessor>
- Enclosing class:
AppendProcessor
public static class AppendProcessor.Builder
extends ProcessorBase.AbstractBuilder<AppendProcessor.Builder>
implements CopyableBuilder<AppendProcessor.Builder,AppendProcessor>
Builder for
AppendProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AppendProcessor.BuilderallowDuplicates(Boolean value) Iffalse, the processor does not append values already present in the field.build()Builds aAppendProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final AppendProcessor.BuilderRequired - API name:fieldprotected AppendProcessor.Builderself()final AppendProcessor.BuilderRequired - The value to be appended.final AppendProcessor.BuilderRequired - The value to be appended.Methods 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<AppendProcessor.Builder,AppendProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<AppendProcessor.Builder>
-
allowDuplicates
Iffalse, the processor does not append values already present in the field.API name:
allow_duplicates -
field
Required - API name:field -
value
Required - The value to be appended. Supports template snippets.API name:
valueAdds all elements of
listtovalue. -
value
Required - The value to be appended. Supports template snippets.API name:
valueAdds one or more values to
value. -
build
Builds aAppendProcessor.- Specified by:
buildin interfaceObjectBuilder<AppendProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-