Class PutUserRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.PutUserRequest
- All Implemented Interfaces:
JsonpSerializable
Adds and updates users in the native realm. These users are commonly referred
to as native users.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutUserRequest>Json deserializer forPutUserRequeststatic final Endpoint<PutUserRequest,PutUserResponse, ErrorResponse> Endpoint "security.put_user". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringemail()API name:emailfinal Booleanenabled()API name:enabledfinal StringfullName()API name:full_namemetadata()API name:metadatastatic PutUserRequestfinal Stringpassword()API name:passwordfinal StringAPI name:password_hashfinal 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.roles()API name:rolesvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringusername()Required - The username of the UserMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutUserRequest -
_ENDPOINT
Endpoint "security.put_user".
-
-
Method Details
-
of
-
email
API name:email -
enabled
API name:enabled -
fullName
API name:full_name -
metadata
API name: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_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
roles
API name:roles -
username
Required - The username of the UserAPI name:
username -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutUserRequestDeserializer
protected static void setupPutUserRequestDeserializer(ObjectDeserializer<PutUserRequest.Builder> op)
-