Class IndexTemplateWithRollover.Builder
- All Implemented Interfaces:
WithJson<IndexTemplateWithRollover.Builder>,ObjectBuilder<IndexTemplateWithRollover>
- Enclosing class:
- IndexTemplateWithRollover
IndexTemplateWithRollover.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowAutoCreate(Boolean value) API name:allow_auto_createbuild()Builds aIndexTemplateWithRollover.composedOf(String value, String... values) Required - An ordered list of component template names.composedOf(List<String> list) Required - An ordered list of component template names.createdDate(DateTime value) Date and time when the index template was created.createdDateMillis(Long value) Date and time when the index template was created, in milliseconds since the epoch.If this object is included, the template is used to create data streams and their backing indices.dataStream(Function<IndexTemplateDataStreamConfiguration.Builder, ObjectBuilder<IndexTemplateDataStreamConfiguration>> fn) If this object is included, the template is used to create data streams and their backing indices.deprecated(Boolean value) Marks this index template as deprecated.ignoreMissingComponentTemplates(String value, String... values) A list of component template names that are allowed to be absent.A list of component template names that are allowed to be absent.indexPatterns(String value, String... values) Required - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.indexPatterns(List<String> list) Required - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.Optional user metadata about the index template.Optional user metadata about the index template.modifiedDate(DateTime value) Date and time when the index template was last modified.modifiedDateMillis(Long value) Date and time when the index template was last modified, in milliseconds since the epoch.Priority to determine index template precedence when a new data stream or index is created.protected IndexTemplateWithRollover.Builderself()Template to be applied.template(Function<IndexTemplateSummaryWithRollover.Builder, ObjectBuilder<IndexTemplateSummaryWithRollover>> fn) Template to be applied.Version number used to manage index templates externally.Methods 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
-
template
public final IndexTemplateWithRollover.Builder template(@Nullable IndexTemplateSummaryWithRollover value) Template to be applied. It may optionally include analiases,mappings, orsettingsconfiguration.API name:
template -
template
public final IndexTemplateWithRollover.Builder template(Function<IndexTemplateSummaryWithRollover.Builder, ObjectBuilder<IndexTemplateSummaryWithRollover>> fn) Template to be applied. It may optionally include analiases,mappings, orsettingsconfiguration.API name:
template -
indexPatterns
Required - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.API name:
index_patternsAdds all elements of
listtoindexPatterns. -
indexPatterns
Required - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.API name:
index_patternsAdds one or more values to
indexPatterns. -
composedOf
Required - An ordered list of component template names. Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.API name:
composed_ofAdds all elements of
listtocomposedOf. -
composedOf
Required - An ordered list of component template names. Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.API name:
composed_ofAdds one or more values to
composedOf. -
version
Version number used to manage index templates externally. This number is not automatically generated by Elasticsearch.API name:
version -
priority
Priority to determine index template precedence when a new data stream or index is created. The index template with the highest priority is chosen. If no priority is specified the template is treated as though it is of priority 0 (lowest priority). This number is not automatically generated by Elasticsearch.API name:
priority -
meta
Optional user metadata about the index template. May have any contents. This map is not automatically generated by Elasticsearch.API name:
_metaAdds all entries of
maptometa. -
meta
Optional user metadata about the index template. May have any contents. This map is not automatically generated by Elasticsearch.API name:
_metaAdds an entry to
meta. -
allowAutoCreate
API name:allow_auto_create -
dataStream
public final IndexTemplateWithRollover.Builder dataStream(@Nullable IndexTemplateDataStreamConfiguration value) If this object is included, the template is used to create data streams and their backing indices. Supports an empty object. Data streams require a matching index template with adata_streamobject.API name:
data_stream -
dataStream
public final IndexTemplateWithRollover.Builder dataStream(Function<IndexTemplateDataStreamConfiguration.Builder, ObjectBuilder<IndexTemplateDataStreamConfiguration>> fn) If this object is included, the template is used to create data streams and their backing indices. Supports an empty object. Data streams require a matching index template with adata_streamobject.API name:
data_stream -
deprecated
Marks this index template as deprecated. When creating or updating a non-deprecated index template that uses deprecated components, Elasticsearch will emit a deprecation warning.API name:
deprecated -
ignoreMissingComponentTemplates
A list of component template names that are allowed to be absent.API name:
ignore_missing_component_templatesAdds all elements of
listtoignoreMissingComponentTemplates. -
ignoreMissingComponentTemplates
public final IndexTemplateWithRollover.Builder ignoreMissingComponentTemplates(String value, String... values) A list of component template names that are allowed to be absent.API name:
ignore_missing_component_templatesAdds one or more values to
ignoreMissingComponentTemplates. -
createdDate
Date and time when the index template was created. Only returned if thehumanquery parameter istrue.API name:
created_date -
createdDateMillis
Date and time when the index template was created, in milliseconds since the epoch.API name:
created_date_millis -
modifiedDate
Date and time when the index template was last modified. Only returned if thehumanquery parameter istrue.API name:
modified_date -
modifiedDateMillis
Date and time when the index template was last modified, in milliseconds since the epoch.API name:
modified_date_millis -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexTemplateWithRollover.Builder>
-
build
Builds aIndexTemplateWithRollover.- Specified by:
buildin interfaceObjectBuilder<IndexTemplateWithRollover>- Throws:
NullPointerException- if some of the required fields are null.
-