Class QueryRoleResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<QueryRoleResponse.Builder>
co.elastic.clients.elasticsearch.security.QueryRoleResponse.Builder
- All Implemented Interfaces:
WithJson<QueryRoleResponse.Builder>
,ObjectBuilder<QueryRoleResponse>
- Enclosing class:
- QueryRoleResponse
public static class QueryRoleResponse.Builder
extends WithJsonObjectBuilderBase<QueryRoleResponse.Builder>
implements ObjectBuilder<QueryRoleResponse>
Builder for
QueryRoleResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aQueryRoleResponse
.count
(int value) Required - The number of roles returned in the response.Required - A list of roles that match the query.Required - A list of roles that match the query.Required - A list of roles that match the query.protected QueryRoleResponse.Builder
self()
total
(int value) Required - The total number of roles found.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Required - The total number of roles found.API name:
total
-
count
Required - The number of roles returned in the response.API name:
count
-
roles
Required - A list of roles that match the query. The returned role format is an extension of the role definition format. It adds thetransient_metadata.enabled
and the_sort
fields.transient_metadata.enabled
is set tofalse
in case the role is automatically disabled, for example when the role grants privileges that are not allowed by the installed license._sort
is present when the search query sorts on some field. It contains the array of values that have been used for sorting.API name:
roles
Adds all elements of
list
toroles
. -
roles
Required - A list of roles that match the query. The returned role format is an extension of the role definition format. It adds thetransient_metadata.enabled
and the_sort
fields.transient_metadata.enabled
is set tofalse
in case the role is automatically disabled, for example when the role grants privileges that are not allowed by the installed license._sort
is present when the search query sorts on some field. It contains the array of values that have been used for sorting.API name:
roles
Adds one or more values to
roles
. -
roles
public final QueryRoleResponse.Builder roles(Function<QueryRole.Builder, ObjectBuilder<QueryRole>> fn) Required - A list of roles that match the query. The returned role format is an extension of the role definition format. It adds thetransient_metadata.enabled
and the_sort
fields.transient_metadata.enabled
is set tofalse
in case the role is automatically disabled, for example when the role grants privileges that are not allowed by the installed license._sort
is present when the search query sorts on some field. It contains the array of values that have been used for sorting.API name:
roles
Adds a value to
roles
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<QueryRoleResponse.Builder>
-
build
Builds aQueryRoleResponse
.- Specified by:
build
in interfaceObjectBuilder<QueryRoleResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-