Class PutComponentTemplateRequest

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

    public class PutComponentTemplateRequest
    extends TimedRequest
    implements org.opensearch.common.xcontent.ToXContentObject
    A request to create an component template.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent

        org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
    • Constructor Detail

      • PutComponentTemplateRequest

        public PutComponentTemplateRequest()
    • Method Detail

      • name

        public java.lang.String name()
        The name of the component template.
      • create

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

        public boolean create()
      • componentTemplate

        public PutComponentTemplateRequest componentTemplate​(org.opensearch.cluster.metadata.ComponentTemplate componentTemplate)
        The component 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