Class PutUserRequest

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

@JsonpDeserializable
public final class PutUserRequest
extends RequestBase
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • username

      public java.lang.String username()
      Required - The username of the User

      API name: username

    • refresh

      @Nullable public jakarta.json.JsonValue 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

    • email

      @Nullable public java.lang.String email()
      API name: email
    • fullName

      @Nullable public java.lang.String fullName()
      API name: full_name
    • metadata

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

      @Nullable public java.lang.String password()
      API name: password
    • passwordHash

      @Nullable public java.lang.String passwordHash()
      API name: password_hash
    • roles

      @Nullable public java.util.List<java.lang.String> roles()
      API name: roles
    • enabled

      @Nullable public java.lang.Boolean enabled()
      API name: enabled
    • 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)
    • setupPutUserRequestDeserializer

      protected static void setupPutUserRequestDeserializer​(DelegatingDeserializer<PutUserRequest.Builder> op)