Class EnableUserRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<EnableUserRequest.Builder>
co.elastic.clients.elasticsearch.security.EnableUserRequest.Builder
- All Implemented Interfaces:
WithJson<EnableUserRequest.Builder>,ObjectBuilder<EnableUserRequest>
- Enclosing class:
- EnableUserRequest
public static class EnableUserRequest.Builder extends RequestBase.AbstractBuilder<EnableUserRequest.Builder> implements ObjectBuilder<EnableUserRequest>
Builder for
EnableUserRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description EnableUserRequestbuild()Builds aEnableUserRequest.EnableUserRequest.Builderrefresh(Refresh value)Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.protected EnableUserRequest.Builderself()EnableUserRequest.Builderusername(java.lang.String value)Required - The username of the user to enableMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
username
Required - The username of the user to enableAPI name:
username -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<EnableUserRequest.Builder>
-
build
Builds aEnableUserRequest.- Specified by:
buildin interfaceObjectBuilder<EnableUserRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-