Class DateIndexNameProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<DateIndexNameProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.DateIndexNameProcessor.Builder
- All Implemented Interfaces:
WithJson<DateIndexNameProcessor.Builder>,ObjectBuilder<DateIndexNameProcessor>
- Enclosing class:
- DateIndexNameProcessor
public static class DateIndexNameProcessor.Builder
extends ProcessorBase.AbstractBuilder<DateIndexNameProcessor.Builder>
implements ObjectBuilder<DateIndexNameProcessor>
Builder for
DateIndexNameProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDateIndexNameProcessor.dateFormats(String value, String... values) Required - API name:date_formatsdateFormats(List<String> list) Required - API name:date_formatsdateRounding(String value) Required - How to round the date when formatting the date into the index name.Required - API name:fieldindexNameFormat(String value) API name:index_name_formatindexNamePrefix(String value) API name:index_name_prefixAPI name:localeprotected DateIndexNameProcessor.Builderself()API name:timezoneMethods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, 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
-
dateFormats
Required - API name:date_formatsAdds all elements of
listtodateFormats. -
dateFormats
Required - API name:date_formatsAdds one or more values to
dateFormats. -
dateRounding
Required - How to round the date when formatting the date into the index name. Valid values are:y(year),M(month),w(week),d(day),h(hour),m(minute) ands(second). Supports template snippets.API name:
date_rounding -
field
Required - API name:field -
indexNameFormat
API name:index_name_format -
indexNamePrefix
API name:index_name_prefix -
locale
API name:locale -
timezone
API name:timezone -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<DateIndexNameProcessor.Builder>
-
build
Builds aDateIndexNameProcessor.- Specified by:
buildin interfaceObjectBuilder<DateIndexNameProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-