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 intcount()Required - The number of roles returned in the response.static QueryRoleResponseroles()Required - A list of roles that match the query.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final inttotal()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.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:
roles -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupQueryRoleResponseDeserializer
protected static void setupQueryRoleResponseDeserializer(ObjectDeserializer<QueryRoleResponse.Builder> op)
-