Class RenameProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<RenameProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.RenameProcessor.Builder
- All Implemented Interfaces:
WithJson<RenameProcessor.Builder>,ObjectBuilder<RenameProcessor>
- Enclosing class:
- RenameProcessor
public static class RenameProcessor.Builder
extends ProcessorBase.AbstractBuilder<RenameProcessor.Builder>
implements ObjectBuilder<RenameProcessor>
Builder for
RenameProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRenameProcessor.final RenameProcessor.BuilderRequired - The field to be renamed.final RenameProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.protected RenameProcessor.Builderself()final RenameProcessor.BuildertargetField(String value) Required - The new name of the field.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 be renamed. Supports template snippets.API name:
field -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
targetField
Required - The new name of the field. Supports template snippets.API name:
target_field -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<RenameProcessor.Builder>
-
build
Builds aRenameProcessor.- Specified by:
buildin interfaceObjectBuilder<RenameProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-