Class TemplateConfig.Builder

All Implemented Interfaces:
Enclosing class:

public static class TemplateConfig.Builder
extends ObjectBuilderBase
implements ObjectBuilder<TemplateConfig>
Builder for TemplateConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • explain

      public final TemplateConfig.Builder explain​(@Nullable java.lang.Boolean value)
      API name: explain
    • id

      public final TemplateConfig.Builder id​(@Nullable java.lang.String value)
      ID of the search template to use. If no source is specified, this parameter is required.

      API name: id

    • params

      public final TemplateConfig.Builder params​(java.util.Map<java.lang.String,​JsonData> map)
      API name: params

      Adds all entries of map to params.

    • params

      public final TemplateConfig.Builder params​(java.lang.String key, JsonData value)
      API name: params

      Adds an entry to params.

    • profile

      public final TemplateConfig.Builder profile​(@Nullable java.lang.Boolean value)
      API name: profile
    • source

      public final TemplateConfig.Builder source​(@Nullable java.lang.String value)
      An inline search template. Supports the same parameters as the search API's request body. Also supports Mustache variables. If no id is specified, this parameter is required.

      API name: source

    • build

      public TemplateConfig build()
      Builds a TemplateConfig.
      Specified by:
      build in interface ObjectBuilder<TemplateConfig>
      java.lang.NullPointerException - if some of the required fields are null.