Class DisableUserRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DisableUserRequest.Builder>
co.elastic.clients.elasticsearch.security.DisableUserRequest.Builder
- All Implemented Interfaces:
WithJson<DisableUserRequest.Builder>
,ObjectBuilder<DisableUserRequest>
- Enclosing class:
- DisableUserRequest
public static class DisableUserRequest.Builder
extends RequestBase.AbstractBuilder<DisableUserRequest.Builder>
implements ObjectBuilder<DisableUserRequest>
Builder for
DisableUserRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDisableUserRequest
.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.protected DisableUserRequest.Builder
self()
Required - The username of the user to disableMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
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 - The username of the user to disableAPI name:
username
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<DisableUserRequest.Builder>
-
build
Builds aDisableUserRequest
.- Specified by:
build
in interfaceObjectBuilder<DisableUserRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-