Class PutComposableIndexTemplateRequest

  • All Implemented Interfaces:
    Validatable, org.opensearch.common.xcontent.ToXContent, org.opensearch.common.xcontent.ToXContentObject

    public class PutComposableIndexTemplateRequest
    extends TimedRequest
    implements org.opensearch.common.xcontent.ToXContentObject
    A request to create an index template.
    • Constructor Detail

      • PutComposableIndexTemplateRequest

        public PutComposableIndexTemplateRequest()
    • Method Detail

      • name

        public java.lang.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.opensearch.cluster.metadata.ComposableIndexTemplate indexTemplate)
        The index template to create.
      • cause

        public java.lang.String cause()
      • toXContent

        public org.opensearch.common.xcontent.XContentBuilder toXContent​(org.opensearch.common.xcontent.XContentBuilder builder,
                                                                         org.opensearch.common.xcontent.ToXContent.Params params)
                                                                  throws java.io.IOException
        Specified by:
        toXContent in interface org.opensearch.common.xcontent.ToXContent
        Throws:
        java.io.IOException