Class ChangePasswordRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ChangePasswordRequest.Builder>
co.elastic.clients.elasticsearch.security.ChangePasswordRequest.Builder
- All Implemented Interfaces:
WithJson<ChangePasswordRequest.Builder>,ObjectBuilder<ChangePasswordRequest>
- Enclosing class:
- ChangePasswordRequest
public static class ChangePasswordRequest.Builder
extends RequestBase.AbstractBuilder<ChangePasswordRequest.Builder>
implements ObjectBuilder<ChangePasswordRequest>
Builder for
ChangePasswordRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aChangePasswordRequest.The new password value.passwordHash(String value) A hash of the new password value.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.protected ChangePasswordRequest.Builderself()The user whose password you want to change.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
password
The new password value. Passwords must be at least 6 characters long.API name:
password -
passwordHash
A hash of the new password value. This must be produced using the same hashing algorithm as has been configured for password storage. For more details, see the explanation of thexpack.security.authc.password_hashing.algorithmsetting.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 -
username
The user whose password you want to change. If you do not specify this parameter, the password is changed for the current user.API name:
username -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ChangePasswordRequest.Builder>
-
build
Builds aChangePasswordRequest.- Specified by:
buildin interfaceObjectBuilder<ChangePasswordRequest>- Throws:
NullPointerException- if some of the required fields are null.
-