Class PutUserRequest

All Implemented Interfaces:

public class PutUserRequest
extends RequestBase
implements JsonpSerializable
Adds and updates users in the native realm. These users are commonly referred to as native users.
See Also:
API specification
  • Field Details

  • Method Details

    • of

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

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

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

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

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

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

      @Nullable public final java.lang.String passwordHash()
      API name: password_hash
    • 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
    • username

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

      API name: username

    • serialize

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

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupPutUserRequestDeserializer

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