Class RoleTemplateQuery
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleTemplateQuery
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RoleTemplateQuery>
Json deserializer forRoleTemplateQuery
-
Method Summary
Modifier and TypeMethodDescriptionstatic RoleTemplateQuery
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
final RoleTemplateScript
template()
When you create a role, you can specify a query that defines the document level security permissions.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forRoleTemplateQuery
-
-
Method Details
-
of
public static RoleTemplateQuery of(Function<RoleTemplateQuery.Builder, ObjectBuilder<RoleTemplateQuery>> fn) -
template
When you create a role, you can specify a query that defines the document level security permissions. You can optionally use Mustache templates in the role query to insert the username of the current authenticated user into the role. Like other places in Elasticsearch that support templating or scripting, you can specify inline, stored, or file-based templates and define custom parameters. You access the details for the current authenticated user through the _user parameter.API name:
template
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupRoleTemplateQueryDeserializer
protected static void setupRoleTemplateQueryDeserializer(ObjectDeserializer<RoleTemplateQuery.Builder> op)
-