Class QueryRoleResponse
java.lang.Object
co.elastic.clients.elasticsearch.security.QueryRoleResponse
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryRoleResponse>
Json deserializer forQueryRoleResponse
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
count()
Required - The number of roles returned in the response.static QueryRoleResponse
roles()
Required - A list of roles that match the query.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
final int
total()
Required - The total number of roles found.
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryRoleResponse
-
-
Method Details
-
of
public static QueryRoleResponse of(Function<QueryRoleResponse.Builder, ObjectBuilder<QueryRoleResponse>> fn) -
total
public final int total()Required - The total number of roles found.API name:
total
-
count
public final int 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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupQueryRoleResponseDeserializer
protected static void setupQueryRoleResponseDeserializer(ObjectDeserializer<QueryRoleResponse.Builder> op)
-