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.Builderself()total(int value) Required - The total number of roles found.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
-
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.enabledand the_sortfields.transient_metadata.enabledis set tofalsein case the role is automatically disabled, for example when the role grants privileges that are not allowed by the installed license._sortis present when the search query sorts on some field. It contains the array of values that have been used for sorting.API name:
rolesAdds all elements of
listtoroles. -
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.enabledand the_sortfields.transient_metadata.enabledis set tofalsein case the role is automatically disabled, for example when the role grants privileges that are not allowed by the installed license._sortis present when the search query sorts on some field. It contains the array of values that have been used for sorting.API name:
rolesAdds 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.enabledand the_sortfields.transient_metadata.enabledis set tofalsein case the role is automatically disabled, for example when the role grants privileges that are not allowed by the installed license._sortis present when the search query sorts on some field. It contains the array of values that have been used for sorting.API name:
rolesAdds a value to
rolesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<QueryRoleResponse.Builder>
-
build
Builds aQueryRoleResponse.- Specified by:
buildin interfaceObjectBuilder<QueryRoleResponse>- Throws:
NullPointerException- if some of the required fields are null.
-