Class PutUserRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutUserRequest.Builder>
co.elastic.clients.elasticsearch.security.PutUserRequest.Builder
- All Implemented Interfaces:
WithJson<PutUserRequest.Builder>
,ObjectBuilder<PutUserRequest>
- Enclosing class:
- PutUserRequest
public static class PutUserRequest.Builder
extends RequestBase.AbstractBuilder<PutUserRequest.Builder>
implements ObjectBuilder<PutUserRequest>
Builder for
PutUserRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPutUserRequest
.final PutUserRequest.Builder
API name:email
final PutUserRequest.Builder
API name:enabled
final PutUserRequest.Builder
API name:full_name
final PutUserRequest.Builder
API name:metadata
final PutUserRequest.Builder
API name:metadata
final PutUserRequest.Builder
API name:password
final PutUserRequest.Builder
passwordHash
(String value) API name:password_hash
final PutUserRequest.Builder
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.final PutUserRequest.Builder
API name:roles
final PutUserRequest.Builder
API name:roles
protected PutUserRequest.Builder
self()
final PutUserRequest.Builder
Required - The username of the UserMethods 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
-
email
API name:email
-
enabled
API name:enabled
-
fullName
API name:full_name
-
metadata
API name:metadata
Adds all entries of
map
tometadata
. -
metadata
API name:metadata
Adds an entry to
metadata
. -
password
API name:password
-
passwordHash
API name:password_hash
-
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
-
roles
API name:roles
Adds all elements of
list
toroles
. -
roles
API name:roles
Adds one or more values to
roles
. -
username
Required - The username of the UserAPI name:
username
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutUserRequest.Builder>
-
build
Builds aPutUserRequest
.- Specified by:
build
in interfaceObjectBuilder<PutUserRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-