Class EnableUserRequest.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.EnableUserRequest.Builder
All Implemented Interfaces:
ObjectBuilder<EnableUserRequest>
Enclosing class:
EnableUserRequest

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

    • Builder

      public Builder()
  • Method Details

    • refresh

      public final EnableUserRequest.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

    • username

      public final EnableUserRequest.Builder username​(java.lang.String value)
      Required - The username of the user to enable

      API name: username

    • build

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