Class QueryRoleRequest.Builder

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

public static class QueryRoleRequest.Builder extends RequestBase.AbstractBuilder<QueryRoleRequest.Builder> implements ObjectBuilder<QueryRoleRequest>
Builder for QueryRoleRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • from

      public final QueryRoleRequest.Builder from(@Nullable Integer value)
      The starting document offset. It must not be negative. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more hits, use the search_after parameter.

      API name: from

    • query

      public final QueryRoleRequest.Builder query(@Nullable RoleQuery value)
      A query to filter which roles to return. If the query parameter is missing, it is equivalent to a match_all query. The query supports a subset of query types, including match_all, bool, term, terms, match, ids, prefix, wildcard, exists, range, and simple_query_string. You can query the following information associated with roles: name, description, metadata, applications.application, applications.privileges, and applications.resources.

      API name: query

    • query

      A query to filter which roles to return. If the query parameter is missing, it is equivalent to a match_all query. The query supports a subset of query types, including match_all, bool, term, terms, match, ids, prefix, wildcard, exists, range, and simple_query_string. You can query the following information associated with roles: name, description, metadata, applications.application, applications.privileges, and applications.resources.

      API name: query

    • query

      public final QueryRoleRequest.Builder query(RoleQueryVariant value)
      A query to filter which roles to return. If the query parameter is missing, it is equivalent to a match_all query. The query supports a subset of query types, including match_all, bool, term, terms, match, ids, prefix, wildcard, exists, range, and simple_query_string. You can query the following information associated with roles: name, description, metadata, applications.application, applications.privileges, and applications.resources.

      API name: query

    • searchAfter

      public final QueryRoleRequest.Builder searchAfter(List<FieldValue> list)
      The search after definition.

      API name: search_after

      Adds all elements of list to searchAfter.

    • searchAfter

      public final QueryRoleRequest.Builder searchAfter(FieldValue value, FieldValue... values)
      The search after definition.

      API name: search_after

      Adds one or more values to searchAfter.

    • searchAfter

      public final QueryRoleRequest.Builder searchAfter(String value, String... values)
      The search after definition.

      API name: search_after

      Adds one or more values to searchAfter.

    • searchAfter

      public final QueryRoleRequest.Builder searchAfter(long value, long... values)
      The search after definition.

      API name: search_after

      Adds one or more values to searchAfter.

    • searchAfter

      public final QueryRoleRequest.Builder searchAfter(double value, double... values)
      The search after definition.

      API name: search_after

      Adds one or more values to searchAfter.

    • searchAfter

      public final QueryRoleRequest.Builder searchAfter(boolean value, boolean... values)
      The search after definition.

      API name: search_after

      Adds one or more values to searchAfter.

    • searchAfter

      The search after definition.

      API name: search_after

      Adds a value to searchAfter using a builder lambda.

    • size

      public final QueryRoleRequest.Builder size(@Nullable Integer value)
      The number of hits to return. It must not be negative. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more hits, use the search_after parameter.

      API name: size

    • sort

      public final QueryRoleRequest.Builder sort(List<SortOptions> list)
      The sort definition. You can sort on username, roles, or enabled. In addition, sort can also be applied to the _doc field to sort by index order.

      API name: sort

      Adds all elements of list to sort.

    • sort

      public final QueryRoleRequest.Builder sort(SortOptions value, SortOptions... values)
      The sort definition. You can sort on username, roles, or enabled. In addition, sort can also be applied to the _doc field to sort by index order.

      API name: sort

      Adds one or more values to sort.

    • sort

      The sort definition. You can sort on username, roles, or enabled. In addition, sort can also be applied to the _doc field to sort by index order.

      API name: sort

      Adds a value to sort using a builder lambda.

    • self

      protected QueryRoleRequest.Builder self()
      Specified by:
      self in class RequestBase.AbstractBuilder<QueryRoleRequest.Builder>
    • build

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