Class PutTemplateRequest

    • Method Detail

      • aliases

        public final java.util.Map<java.lang.String,​Alias> aliases()
        Aliases for the index.

        API name: aliases

      • create

        @Nullable
        public final java.lang.Boolean create()
        If true, this request cannot replace or update existing index templates.

        API name: create

      • flatSettings

        @Nullable
        public final java.lang.Boolean flatSettings()
        API name: flat_settings
      • indexPatterns

        public final java.util.List<java.lang.String> indexPatterns()
        Array of wildcard expressions used to match the names of indices during creation.

        API name: index_patterns

      • mappings

        @Nullable
        public final TypeMapping mappings()
        Mapping for fields in the index.

        API name: mappings

      • masterTimeout

        @Deprecated
        @Nullable
        public final Time masterTimeout()
        Deprecated.
        Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

        API name: master_timeout

      • clusterManagerTimeout

        @Nullable
        public final Time clusterManagerTimeout()
        Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.

        API name: cluster_manager_timeout

      • name

        public final java.lang.String name()
        Required - The name of the template

        API name: name

      • order

        @Nullable
        public final java.lang.Integer order()
        Order in which Elasticsearch applies this template if index matches multiple templates.

        Templates with lower 'order' values are merged first. Templates with higher 'order' values are merged later, overriding templates with lower values.

        API name: order

      • settings

        public final java.util.Map<java.lang.String,​JsonData> settings()
        Configuration options for the index.

        API name: settings

      • timeout

        @Nullable
        public final Time timeout()
        API name: timeout
      • version

        @Nullable
        public final java.lang.Long version()
        Version number used to manage index templates externally. This number is not automatically generated by Elasticsearch.

        API name: version

      • serialize

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

        protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator,
                                         JsonpMapper mapper)