Class DisableUserRequest.Builder

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

public static class DisableUserRequest.Builder
extends java.lang.Object
implements ObjectBuilder<DisableUserRequest>
Builder for DisableUserRequest.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    DisableUserRequest build()
    DisableUserRequest.Builder refresh​(jakarta.json.JsonValue 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.
    DisableUserRequest.Builder username​(java.lang.String value)
    The username of the user to disable

    Methods inherited from class java.lang.Object

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

    • Builder

      public Builder()
  • Method Details

    • username

      public DisableUserRequest.Builder username​(java.lang.String value)
      The username of the user to disable

      API name: username

    • refresh

      public DisableUserRequest.Builder refresh​(@Nullable jakarta.json.JsonValue 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

    • build

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