Class DeleteUserRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.DeleteUserRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<DeleteUserRequest>
- Enclosing class:
- DeleteUserRequest
public static class DeleteUserRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<DeleteUserRequest>
Builder for
DeleteUserRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DeleteUserRequest
build()
Builds aDeleteUserRequest
.DeleteUserRequest.Builder
refresh(Refresh value)
Iftrue
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.DeleteUserRequest.Builder
username(java.lang.String value)
Required - usernameMethods 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
-
Builder
public Builder()
-
-
Method Details
-
refresh
Iftrue
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.API name:
refresh
-
username
Required - usernameAPI name:
username
-
build
Builds aDeleteUserRequest
.- Specified by:
build
in interfaceObjectBuilder<DeleteUserRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-