Class RoleMapping
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleMapping
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class RoleMapping extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RoleMapping.Builder
Builder forRoleMapping
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RoleMapping>
_DESERIALIZER
Json deserializer forRoleMapping
-
Method Summary
Modifier and Type Method Description boolean
enabled()
Required - API name:enabled
java.util.Map<java.lang.String,JsonData>
metadata()
Required - API name:metadata
static RoleMapping
of(java.util.function.Function<RoleMapping.Builder,ObjectBuilder<RoleMapping>> fn)
java.util.List<java.lang.String>
roles()
Required - API name:roles
java.util.List<RoleTemplate>
roleTemplates()
API name:role_templates
RoleMappingRule
rules()
Required - API name:rules
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
setupRoleMappingDeserializer(ObjectDeserializer<RoleMapping.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRoleMapping
-
-
Method Details
-
of
public static RoleMapping of(java.util.function.Function<RoleMapping.Builder,ObjectBuilder<RoleMapping>> fn) -
enabled
public final boolean enabled()Required - API name:enabled
-
metadata
Required - API name:metadata
-
roles
public final java.util.List<java.lang.String> roles()Required - API name:roles
-
rules
Required - API name:rules
-
roleTemplates
API name:role_templates
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupRoleMappingDeserializer
-