Class EnableUserRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.EnableUserRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<EnableUserRequest>
- Enclosing class:
- EnableUserRequest
public static class EnableUserRequest.Builder extends java.lang.Object implements ObjectBuilder<EnableUserRequest>
Builder for
EnableUserRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description EnableUserRequest
build()
Builds aEnableUserRequest
.EnableUserRequest.Builder
refresh(jakarta.json.JsonValue 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.EnableUserRequest.Builder
username(java.lang.String value)
The username of the user to enableMethods 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
The username of the user to enableAPI name:
username
-
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
-
build
Builds aEnableUserRequest
.- Specified by:
build
in interfaceObjectBuilder<EnableUserRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-