Class ChangePasswordRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.ChangePasswordRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<ChangePasswordRequest>
- Enclosing class:
- ChangePasswordRequest
public static class ChangePasswordRequest.Builder extends java.lang.Object implements ObjectBuilder<ChangePasswordRequest>
Builder for
ChangePasswordRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ChangePasswordRequestbuild()Builds aChangePasswordRequest.ChangePasswordRequest.Builderpassword(java.lang.String value)API name:passwordChangePasswordRequest.Builderrefresh(jakarta.json.JsonValue 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.ChangePasswordRequest.Builderusername(java.lang.String value)The username of the user to change the password forMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
username
The username of the user to change the password forAPI name:
username -
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 -
password
API name:password -
build
Builds aChangePasswordRequest.- Specified by:
buildin interfaceObjectBuilder<ChangePasswordRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-