Class PutIndexTemplateRequest

All Implemented Interfaces:

public class PutIndexTemplateRequest
extends RequestBase
implements JsonpSerializable
Creates or updates an index template.
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static PutIndexTemplateRequest of​(java.util.function.Function<PutIndexTemplateRequest.Builder,​ObjectBuilder<PutIndexTemplateRequest>> fn)
    • meta

      public final java.util.Map<java.lang.String,​JsonData> meta()
      API name: _meta
    • composedOf

      public final java.util.List<java.lang.String> composedOf()
      API name: composed_of
    • create

      @Nullable public final java.lang.Boolean create()
      Whether the index template should only be added if new or can also replace an existing one

      API name: create

    • dataStream

      @Nullable public final DataStreamVisibility dataStream()
      API name: data_stream
    • indexPatterns

      public final java.util.List<java.lang.String> indexPatterns()
      API name: index_patterns
    • name

      public final java.lang.String name()
      Required - Index or template name

      API name: name

    • priority

      @Nullable public final java.lang.Integer priority()
      API name: priority
    • template

      @Nullable public final IndexTemplateMapping template()
      API name: template
    • version

      @Nullable public final java.lang.Long version()
      API name: version
    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupPutIndexTemplateRequestDeserializer

      protected static void setupPutIndexTemplateRequestDeserializer​(ObjectDeserializer<PutIndexTemplateRequest.Builder> op)