Class PutRoleMappingRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.PutRoleMappingRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class PutRoleMappingRequest
extends RequestBase
implements JsonpSerializable
Creates and updates role mappings.
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static PutRoleMappingRequest of​(java.util.function.Function<PutRoleMappingRequest.Builder,​ObjectBuilder<PutRoleMappingRequest>> fn)
    • enabled

      @Nullable public final java.lang.Boolean enabled()
      API name: enabled
    • metadata

      public final java.util.Map<java.lang.String,​JsonData> metadata()
      API name: metadata
    • name

      public final java.lang.String name()
      Required - Role-mapping name

      API name: name

    • refresh

      @Nullable public final Refresh refresh()
      If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes.

      API name: refresh

    • roles

      public final java.util.List<java.lang.String> roles()
      API name: roles
    • rules

      @Nullable public final RoleMappingRule rules()
      API name: rules
    • runAs

      public final java.util.List<java.lang.String> runAs()
      API name: run_as
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupPutRoleMappingRequestDeserializer

      protected static void setupPutRoleMappingRequestDeserializer​(ObjectDeserializer<PutRoleMappingRequest.Builder> op)