Class ChangePasswordRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.security.ChangePasswordRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ChangePasswordRequest.Builder,ChangePasswordRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class ChangePasswordRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<ChangePasswordRequest.Builder,ChangePasswordRequest>
Changes the password for the current user.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ChangePasswordRequest> Json deserializer forChangePasswordRequeststatic final Endpoint<ChangePasswordRequest, ChangePasswordResponse, ErrorResponse> Endpoint "security.change_password". -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringRequired - The current password.booleaninthashCode()static ChangePasswordRequestfinal Stringpassword()Required - The new password to set.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forChangePasswordRequest -
_ENDPOINT
Endpoint "security.change_password".
-
-
Method Details
-
of
public static ChangePasswordRequest of(Function<ChangePasswordRequest.Builder, ObjectBuilder<ChangePasswordRequest>> fn) -
currentPassword
Required - The current password.API name:
current_password -
password
Required - The new password to set.API name:
password -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ChangePasswordRequest.Builder,ChangePasswordRequest> - Returns:
- a new builder instance.
-
builder
-
setupChangePasswordRequestDeserializer
protected static void setupChangePasswordRequestDeserializer(ObjectDeserializer<ChangePasswordRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-