Class TrimProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<TrimProcessor.Builder>
org.opensearch.client.opensearch.ingest.TrimProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<TrimProcessor.Builder,,TrimProcessor> MutableBuilder<TrimProcessor.Builder,,TrimProcessor> ObjectBuilder<TrimProcessor>
- Enclosing class:
TrimProcessor
public static class TrimProcessor.Builder
extends ProcessorBase.AbstractBuilder<TrimProcessor.Builder>
implements CopyableBuilder<TrimProcessor.Builder,TrimProcessor>
Builder for
TrimProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTrimProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final TrimProcessor.BuilderRequired - API name:fieldfinal TrimProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.protected TrimProcessor.Builderself()final TrimProcessor.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<TrimProcessor.Builder,TrimProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<TrimProcessor.Builder>
-
field
Required - API name:field -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
targetField
API name:target_field -
build
Builds aTrimProcessor.- Specified by:
buildin interfaceObjectBuilder<TrimProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-