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 class
ChangePasswordRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forChangePasswordRequest
static Endpoint<ChangePasswordRequest,ChangePasswordResponse,ElasticsearchError>
ENDPOINT
Endpoint "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.String
password()
API name:password
jakarta.json.JsonValue
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.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupChangePasswordRequestDeserializer(DelegatingDeserializer<ChangePasswordRequest.Builder> op)
java.lang.String
username()
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_for
then wait for a refresh to make this operation visible to search, iffalse
then 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupChangePasswordRequestDeserializer
protected static void setupChangePasswordRequestDeserializer(DelegatingDeserializer<ChangePasswordRequest.Builder> op)
-