Package api.mpba.rastvdmy.dto.request
Record Class UserProfileRequest
java.lang.Object
java.lang.Record
api.mpba.rastvdmy.dto.request.UserProfileRequest
- Record Components:
 id- The unique identifier for the user.name- The user's first name.surname- The user's surname.dateOfBirth- The user's date of birth, formatted as a string.countryOfOrigin- The user's country of origin.email- The user's email address.password- The user's password.phoneNumber- The user's phone number.avatar- The URL or path to the user's avatar image.status- The current status of the user (active, inactive, etc.).role- The user's assigned role within the system.
public record UserProfileRequest(UUID id, String name, String surname, String dateOfBirth, String countryOfOrigin, String email, String password, String phoneNumber, String avatar, UserStatus status, UserRole role)
extends Record
This class represents a request to create or update a user's profile in the system.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionavatar()Returns the value of theavatarrecord component.Returns the value of thecountryOfOriginrecord component.Returns the value of thedateOfBirthrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.password()Returns the value of thepasswordrecord component.Returns the value of thephoneNumberrecord component.role()Returns the value of therolerecord component.status()Returns the value of thestatusrecord component.surname()Returns the value of thesurnamerecord component.final StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
UserProfileRequest
public UserProfileRequest(UUID id, String name, String surname, String dateOfBirth, String countryOfOrigin, String email, String password, String phoneNumber, String avatar, UserStatus status, UserRole role) Creates an instance of aUserProfileRequestrecord class.- Parameters:
 id- the value for theidrecord componentname- the value for thenamerecord componentsurname- the value for thesurnamerecord componentdateOfBirth- the value for thedateOfBirthrecord componentcountryOfOrigin- the value for thecountryOfOriginrecord componentemail- the value for theemailrecord componentpassword- the value for thepasswordrecord componentphoneNumber- the value for thephoneNumberrecord componentavatar- the value for theavatarrecord componentstatus- the value for thestatusrecord componentrole- the value for therolerecord component
 
 - 
 - 
Method Details
- 
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. - 
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. - 
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). - 
id
Returns the value of theidrecord component.- Returns:
 - the value of the 
idrecord component 
 - 
name
Returns the value of thenamerecord component.- Returns:
 - the value of the 
namerecord component 
 - 
surname
Returns the value of thesurnamerecord component.- Returns:
 - the value of the 
surnamerecord component 
 - 
dateOfBirth
Returns the value of thedateOfBirthrecord component.- Returns:
 - the value of the 
dateOfBirthrecord component 
 - 
countryOfOrigin
Returns the value of thecountryOfOriginrecord component.- Returns:
 - the value of the 
countryOfOriginrecord component 
 - 
email
Returns the value of theemailrecord component.- Returns:
 - the value of the 
emailrecord component 
 - 
password
Returns the value of thepasswordrecord component.- Returns:
 - the value of the 
passwordrecord component 
 - 
phoneNumber
Returns the value of thephoneNumberrecord component.- Returns:
 - the value of the 
phoneNumberrecord component 
 - 
avatar
Returns the value of theavatarrecord component.- Returns:
 - the value of the 
avatarrecord component 
 - 
status
Returns the value of thestatusrecord component.- Returns:
 - the value of the 
statusrecord component 
 - 
role
Returns the value of therolerecord component.- Returns:
 - the value of the 
rolerecord component 
 
 -