Class SimulateIndexTemplateRequest

    • Method Detail

      • meta

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

        @Nullable
        public final java.lang.Boolean allowAutoCreate()
        API name: allow_auto_create
      • composedOf

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

        @Nullable
        public final java.lang.Boolean create()
        If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.

        API name: create

      • dataStream

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

        public final java.util.List<java.lang.String> indexPatterns()
        API name: index_patterns
      • 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 - Index or template name to simulate

        API name: name

      • priority

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

        @Nullable
        public final java.lang.Long version()
        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)