Class RoleTemplateQuery.Builder

All Implemented Interfaces:
WithJson<RoleTemplateQuery.Builder>, ObjectBuilder<RoleTemplateQuery>
Enclosing class:
RoleTemplateQuery

public static class RoleTemplateQuery.Builder extends WithJsonObjectBuilderBase<RoleTemplateQuery.Builder> implements ObjectBuilder<RoleTemplateQuery>
Builder for RoleTemplateQuery.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • template

      public final RoleTemplateQuery.Builder template(@Nullable RoleTemplateScript value)
      When you create a role, you can specify a query that defines the document level security permissions. You can optionally use Mustache templates in the role query to insert the username of the current authenticated user into the role. Like other places in Elasticsearch that support templating or scripting, you can specify inline, stored, or file-based templates and define custom parameters. You access the details for the current authenticated user through the _user parameter.

      API name: template

    • template

      When you create a role, you can specify a query that defines the document level security permissions. You can optionally use Mustache templates in the role query to insert the username of the current authenticated user into the role. Like other places in Elasticsearch that support templating or scripting, you can specify inline, stored, or file-based templates and define custom parameters. You access the details for the current authenticated user through the _user parameter.

      API name: template

    • self

      protected RoleTemplateQuery.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<RoleTemplateQuery.Builder>
    • build

      public RoleTemplateQuery build()
      Specified by:
      build in interface ObjectBuilder<RoleTemplateQuery>
      Throws:
      NullPointerException - if some of the required fields are null.