Package com.dzidzi.dto.user
Class ChangeUserRequest
java.lang.Object
com.dzidzi.dto.user.ChangeUserRequest
ChangeUserRequest represents the DTO request containing the objects used to update an existing user.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChangeUserRequest(String contact, ChangeAddressRequest address, String newPassword, String password, String username) Creates a newChangeUserRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeUserRequest.Builderbuilder()The new address of the user.The new contact of the userThe new password to set.The existing password.The new username to set.
-
Constructor Details
-
ChangeUserRequest
public ChangeUserRequest() -
ChangeUserRequest
@ConstructorProperties({"contact","address","newPassword","password","username"}) public ChangeUserRequest(String contact, ChangeAddressRequest address, String newPassword, String password, String username) Creates a newChangeUserRequestinstance.- Parameters:
contact- The new contact of the useraddress- The new address of the user.ChangeAddressRequestnewPassword- The new password to set.password- The existing password.username- The new username to set.
-
-
Method Details
-
builder
-
getContact
The new contact of the user -
getAddress
The new address of the user.ChangeAddressRequest -
getNewPassword
The new password to set. -
getPassword
The existing password. -
getUsername
The new username to set.
-