Class User.AbstractBuilder<BuilderT extends User.AbstractBuilder<BuilderT>>

Direct Known Subclasses:
AuthenticatedUser.Builder, User.Builder
Enclosing class:

protected abstract static class User.AbstractBuilder<BuilderT extends User.AbstractBuilder<BuilderT>>
extends ObjectBuilderBase
  • Constructor Summary

    Modifier Constructor Description
    protected AbstractBuilder()  
  • Method Summary

    Modifier and Type Method Description
    BuilderT email​(java.lang.String value)
    API name: email
    BuilderT enabled​(boolean value)
    Required - API name: enabled
    BuilderT fullName​(java.lang.String value)
    API name: full_name
    BuilderT metadata​(java.lang.String key, JsonData value)
    Required - API name: metadata
    BuilderT metadata​(java.util.Map<java.lang.String,​JsonData> map)
    Required - API name: metadata
    BuilderT roles​(java.lang.String value, java.lang.String... values)
    Required - API name: roles
    BuilderT roles​(java.util.List<java.lang.String> list)
    Required - API name: roles
    protected abstract BuilderT self()  
    BuilderT username​(java.lang.String value)
    Required - API name: username

    Methods inherited from class co.elastic.clients.util.ObjectBuilderBase

    _checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
  • Method Details

    • email

      public final BuilderT email​(@Nullable java.lang.String value)
      API name: email
    • fullName

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

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

      Adds all entries of map to metadata.

    • metadata

      public final BuilderT metadata​(java.lang.String key, JsonData value)
      Required - API name: metadata

      Adds an entry to metadata.

    • roles

      public final BuilderT roles​(java.util.List<java.lang.String> list)
      Required - API name: roles

      Adds all elements of list to roles.

    • roles

      public final BuilderT roles​(java.lang.String value, java.lang.String... values)
      Required - API name: roles

      Adds one or more values to roles.

    • username

      public final BuilderT username​(java.lang.String value)
      Required - API name: username
    • enabled

      public final BuilderT enabled​(boolean value)
      Required - API name: enabled
    • self

      protected abstract BuilderT self()