Class QueryRoleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<QueryRoleRequest.Builder>
co.elastic.clients.elasticsearch.security.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryRoleRequest.final QueryRoleRequest.BuilderThe starting document offset.final QueryRoleRequest.BuilderA query to filter which roles to return.final QueryRoleRequest.Builderquery(RoleQueryVariant value) A query to filter which roles to return.final QueryRoleRequest.BuilderA query to filter which roles to return.final QueryRoleRequest.BuildersearchAfter(boolean value, boolean... values) The search after definition.final QueryRoleRequest.BuildersearchAfter(double value, double... values) The search after definition.final QueryRoleRequest.BuildersearchAfter(long value, long... values) The search after definition.final QueryRoleRequest.BuildersearchAfter(FieldValue value, FieldValue... values) The search after definition.final QueryRoleRequest.BuildersearchAfter(String value, String... values) The search after definition.final QueryRoleRequest.BuilderThe search after definition.final QueryRoleRequest.BuildersearchAfter(List<FieldValue> list) The search after definition.protected QueryRoleRequest.Builderself()final QueryRoleRequest.BuilderThe number of hits to return.final QueryRoleRequest.Buildersort(SortOptions value, SortOptions... values) The sort definition.final QueryRoleRequest.BuilderThe sort definition.final QueryRoleRequest.Buildersort(List<SortOptions> list) The sort definition.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
The starting document offset. It must not be negative. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
from -
query
A query to filter which roles to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following information associated with roles:name,description,metadata,applications.application,applications.privileges, andapplications.resources.API name:
query -
query
public final QueryRoleRequest.Builder query(Function<RoleQuery.Builder, ObjectBuilder<RoleQuery>> fn) A query to filter which roles to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following information associated with roles:name,description,metadata,applications.application,applications.privileges, andapplications.resources.API name:
query -
query
A query to filter which roles to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following information associated with roles:name,description,metadata,applications.application,applications.privileges, andapplications.resources.API name:
query -
searchAfter
The search after definition.API name:
search_afterAdds all elements of
listtosearchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
public final QueryRoleRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) The search after definition.API name:
search_afterAdds a value to
searchAfterusing a builder lambda. -
size
The number of hits to return. It must not be negative. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
size -
sort
The sort definition. You can sort onusername,roles, orenabled. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds all elements of
listtosort. -
sort
The sort definition. You can sort onusername,roles, orenabled. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds one or more values to
sort. -
sort
public final QueryRoleRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) The sort definition. You can sort onusername,roles, orenabled. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds a value to
sortusing a builder lambda. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<QueryRoleRequest.Builder>
-
build
Builds aQueryRoleRequest.- Specified by:
buildin interfaceObjectBuilder<QueryRoleRequest>- Throws:
NullPointerException- if some of the required fields are null.
-