Class PutComposableIndexTemplateRequest

java.lang.Object
org.elasticsearch.client.TimedRequest
org.elasticsearch.client.indices.PutComposableIndexTemplateRequest
All Implemented Interfaces:
Validatable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class PutComposableIndexTemplateRequest extends TimedRequest implements org.elasticsearch.xcontent.ToXContentObject
A request to create an index template.
  • Constructor Details

    • PutComposableIndexTemplateRequest

      public PutComposableIndexTemplateRequest()
  • Method Details

    • name

      Sets the name of the index template.
    • name

      public String name()
      The name of the index template.
    • create

      public PutComposableIndexTemplateRequest create(boolean create)
      Set to true to force only creation, not an update of an index template. If it already exists, it will fail with an IllegalArgumentException.
    • create

      public boolean create()
    • indexTemplate

      public PutComposableIndexTemplateRequest indexTemplate(org.elasticsearch.cluster.metadata.ComposableIndexTemplate indexTemplate)
      The index template to create.
    • cause

      The cause for this index template creation.
    • cause

      public String cause()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException