Class DateProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<DateProcessor.Builder>
org.opensearch.client.opensearch.ingest.DateProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<DateProcessor.Builder,,DateProcessor> MutableBuilder<DateProcessor.Builder,,DateProcessor> ObjectBuilder<DateProcessor>
- Enclosing class:
DateProcessor
public static class DateProcessor.Builder
extends ProcessorBase.AbstractBuilder<DateProcessor.Builder>
implements CopyableBuilder<DateProcessor.Builder,DateProcessor>
Builder for
DateProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDateProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final DateProcessor.BuilderRequired - API name:fieldfinal DateProcessor.BuilderRequired - An array of the expected date formats.final DateProcessor.BuilderRequired - An array of the expected date formats.final DateProcessor.BuilderThe locale to use when parsing the date, relevant when parsing month names or week days.protected DateProcessor.Builderself()final DateProcessor.BuildertargetField(String value) API name:target_fieldfinal DateProcessor.BuilderThe time zone to use when parsing the date.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<DateProcessor.Builder,DateProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<DateProcessor.Builder>
-
field
Required - API name:field -
formats
Required - An array of the expected date formats. Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.API name:
formatsAdds all elements of
listtoformats. -
formats
Required - An array of the expected date formats. Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.API name:
formatsAdds one or more values to
formats. -
locale
The locale to use when parsing the date, relevant when parsing month names or week days. Supports template snippets.API name:
locale -
targetField
API name:target_field -
timezone
The time zone to use when parsing the date. Supports template snippets.API name:
timezone -
build
Builds aDateProcessor.- Specified by:
buildin interfaceObjectBuilder<DateProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-