Class IndexTemplate
java.lang.Object
org.opensearch.client.opensearch.indices.IndexTemplate
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<IndexTemplate.Builder,IndexTemplate>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class IndexTemplate
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<IndexTemplate.Builder,IndexTemplate>
The configuration for an index template.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<IndexTemplate> Json deserializer forIndexTemplate -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanWhether the template allows automatic index creation.static IndexTemplate.Builderbuilder()An ordered list of component template names.API name:data_streambooleaninthashCode()Required - API name:index_patternsmeta()API name:_metastatic IndexTemplatefinal Longpriority()The priority to determine index template precedence when a new data stream or index is created.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IndexTemplateSummarytemplate()API name:templateCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Longversion()API name:versionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forIndexTemplate
-
-
Method Details
-
of
-
allowAutoCreate
Whether the template allows automatic index creation.API name:
allow_auto_create -
composedOf
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_of -
dataStream
API name:data_stream -
indexPatterns
Required - API name:index_patterns -
meta
API name:_meta -
priority
The 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 OpenSearch.API name:
priority -
template
API name:template -
version
API name:version -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<IndexTemplate.Builder,IndexTemplate> - Returns:
- a new builder instance.
-
builder
-
setupIndexTemplateDeserializer
-
hashCode
public int hashCode() -
equals
-