Class PutUserRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<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 WithJsonObjectBuilderBase<PutUserRequest.Builder> implements ObjectBuilder<PutUserRequest>
Builder for
PutUserRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PutUserRequest
build()
Builds aPutUserRequest
.PutUserRequest.Builder
email(java.lang.String value)
API name:email
PutUserRequest.Builder
enabled(java.lang.Boolean value)
API name:enabled
PutUserRequest.Builder
fullName(java.lang.String value)
API name:full_name
PutUserRequest.Builder
metadata(java.lang.String key, JsonData value)
API name:metadata
PutUserRequest.Builder
metadata(java.util.Map<java.lang.String,JsonData> map)
API name:metadata
PutUserRequest.Builder
password(java.lang.String value)
API name:password
PutUserRequest.Builder
passwordHash(java.lang.String value)
API name:password_hash
PutUserRequest.Builder
refresh(Refresh 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.PutUserRequest.Builder
roles(java.lang.String value, java.lang.String... values)
API name:roles
PutUserRequest.Builder
roles(java.util.List<java.lang.String> list)
API name:roles
protected PutUserRequest.Builder
self()
PutUserRequest.Builder
username(java.lang.String value)
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 classWithJsonObjectBuilderBase<PutUserRequest.Builder>
-
build
Builds aPutUserRequest
.- Specified by:
build
in interfaceObjectBuilder<PutUserRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-