Class EnableUserRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.EnableUserRequest
public class EnableUserRequest extends RequestBase
Enables users in the native realm.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnableUserRequest.BuilderBuilder forEnableUserRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static Endpoint<EnableUserRequest,EnableUserResponse,ErrorResponse>_ENDPOINTEndpoint "security.enable_user". -
Method Summary
Modifier and Type Method Description static EnableUserRequestof(java.util.function.Function<EnableUserRequest.Builder,ObjectBuilder<EnableUserRequest>> fn)Refreshrefresh()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.java.lang.Stringusername()Required - The username of the user to enableMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_ENDPOINT
Endpoint "security.enable_user".
-
-
Method Details
-
of
public static EnableUserRequest of(java.util.function.Function<EnableUserRequest.Builder,ObjectBuilder<EnableUserRequest>> fn) -
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
public final java.lang.String username()Required - The username of the user to enableAPI name:
username
-