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)
      Starting document offset. 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, 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, applications.resources.

      API name: query

    • searchAfter

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

      API name: search_after

      Adds all elements of list to searchAfter.

    • searchAfter

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

      API name: search_after

      Adds one or more values to searchAfter.

    • searchAfter

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

      API name: search_after

      Adds all passed values to searchAfter.

    • searchAfter

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

      API name: search_after

      Adds all passed values to searchAfter.

    • searchAfter

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

      API name: search_after

      Adds all passed values to searchAfter.

    • searchAfter

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

      API name: search_after

      Adds all passed values to searchAfter.

    • searchAfter

      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. 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)
      All public fields of a role are eligible for sorting. 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)
      All public fields of a role are eligible for sorting. 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

      All public fields of a role are eligible for sorting. 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.