Class SetProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<SetProcessor.Builder>
org.opensearch.client.opensearch.ingest.SetProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<SetProcessor.Builder,,SetProcessor> MutableBuilder<SetProcessor.Builder,,SetProcessor> ObjectBuilder<SetProcessor>
- Enclosing class:
SetProcessor
public static class SetProcessor.Builder
extends ProcessorBase.AbstractBuilder<SetProcessor.Builder>
implements CopyableBuilder<SetProcessor.Builder,SetProcessor>
Builder for
SetProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSetProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SetProcessor.BuilderAPI name:copy_fromfinal SetProcessor.BuilderRequired - API name:fieldfinal SetProcessor.BuilderignoreEmptyValue(Boolean value) Iftrueandvalueis a template snippet that evaluates tonullor the empty string, the processor quietly exits without modifying the document.final SetProcessor.BuilderThe media type for encodingvalue.final SetProcessor.BuilderIftrueprocessor will update fields with pre-existing non-null-valued field.protected SetProcessor.Builderself()final SetProcessor.BuilderThe value to be set for the field.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<SetProcessor.Builder,SetProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<SetProcessor.Builder>
-
copyFrom
API name:copy_from -
field
Required - API name:field -
ignoreEmptyValue
Iftrueandvalueis a template snippet that evaluates tonullor the empty string, the processor quietly exits without modifying the document.API name:
ignore_empty_value -
mediaType
The media type for encodingvalue. Applies only when value is a template snippet. Must be one ofapplication/json,text/plain, orapplication/x-www-form-urlencoded.API name:
media_type -
override
Iftrueprocessor will update fields with pre-existing non-null-valued field. When set tofalse, such fields will not be touched.API name:
override -
value
The value to be set for the field. Supports template snippets. May specify only one ofvalueorcopy_from.API name:
value -
build
Builds aSetProcessor.- Specified by:
buildin interfaceObjectBuilder<SetProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-