Class TemplateMapping
java.lang.Object
org.opensearch.client.opensearch.indices.TemplateMapping
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<TemplateMapping.Builder,TemplateMapping>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TemplateMapping
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<TemplateMapping.Builder,TemplateMapping>
The mapping configuration for a template.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TemplateMapping> Json deserializer forTemplateMapping -
Method Summary
Modifier and TypeMethodDescriptionaliases()Required - API name:aliasesstatic TemplateMapping.Builderbuilder()booleaninthashCode()Required - API name:index_patternsfinal TypeMappingmappings()Required - API name:mappingsstatic TemplateMappingfinal intorder()Required - The order in which the template should be applied.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()Required - The index settings to apply.protected static voidCreate 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 forTemplateMapping
-
-
Method Details
-
of
public static TemplateMapping of(Function<TemplateMapping.Builder, ObjectBuilder<TemplateMapping>> fn) -
aliases
Required - API name:aliases -
indexPatterns
Required - API name:index_patterns -
mappings
Required - API name:mappings -
order
public final int order()Required - The order in which the template should be applied.API name:
order -
settings
Required - The index settings to apply.API name:
settings -
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<TemplateMapping.Builder,TemplateMapping> - Returns:
- a new builder instance.
-
builder
-
setupTemplateMappingDeserializer
protected static void setupTemplateMappingDeserializer(ObjectDeserializer<TemplateMapping.Builder> op) -
hashCode
public int hashCode() -
equals
-