Class ChangePasswordRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.ChangePasswordRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class ChangePasswordRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChangePasswordRequest.BuilderBuilder forChangePasswordRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ChangePasswordRequest>_DESERIALIZERJson deserializer forChangePasswordRequeststatic Endpoint<ChangePasswordRequest,ChangePasswordResponse,ElasticsearchError>ENDPOINTEndpoint "security.change_password". -
Constructor Summary
Constructors Constructor Description ChangePasswordRequest(ChangePasswordRequest.Builder builder)ChangePasswordRequest(java.util.function.Function<ChangePasswordRequest.Builder,ChangePasswordRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringpassword()API name:passwordjakarta.json.JsonValuerefresh()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.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupChangePasswordRequestDeserializer(DelegatingDeserializer<ChangePasswordRequest.Builder> op)java.lang.Stringusername()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
-
Field Details
-
_DESERIALIZER
Json deserializer forChangePasswordRequest -
ENDPOINT
public static final Endpoint<ChangePasswordRequest,ChangePasswordResponse,ElasticsearchError> ENDPOINTEndpoint "security.change_password".
-
-
Constructor Details
-
ChangePasswordRequest
-
ChangePasswordRequest
public ChangePasswordRequest(java.util.function.Function<ChangePasswordRequest.Builder,ChangePasswordRequest.Builder> fn)
-
-
Method Details
-
username
@Nullable public java.lang.String username()The username of the user to change the password forAPI name:
username -
refresh
@Nullable public jakarta.json.JsonValue 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
@Nullable public java.lang.String password()API name:password -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupChangePasswordRequestDeserializer
protected static void setupChangePasswordRequestDeserializer(DelegatingDeserializer<ChangePasswordRequest.Builder> op)
-