Class PutUserRequest.Builder

All Implemented Interfaces:
Enclosing class:

public static class PutUserRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<PutUserRequest>
Builder for PutUserRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • email

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

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

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

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

      Adds all entries of map to metadata.

    • metadata

      public final PutUserRequest.Builder metadata​(java.lang.String key, JsonData value)
      API name: metadata

      Adds an entry to metadata.

    • password

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

      public final PutUserRequest.Builder passwordHash​(@Nullable java.lang.String value)
      API name: password_hash
    • refresh

      public final PutUserRequest.Builder refresh​(@Nullable Refresh value)
      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 PutUserRequest.Builder roles​(java.util.List<java.lang.String> list)
      API name: roles

      Adds all elements of list to roles.

    • roles

      public final PutUserRequest.Builder roles​(java.lang.String value, java.lang.String... values)
      API name: roles

      Adds one or more values to roles.

    • username

      public final PutUserRequest.Builder username​(java.lang.String value)
      Required - The username of the User

      API name: username

    • build

      public PutUserRequest build()
      Builds a PutUserRequest.
      Specified by:
      build in interface ObjectBuilder<PutUserRequest>
      java.lang.NullPointerException - if some of the required fields are null.