Package energy.eddie.aiida.dtos.user
Record Class UpdateUserSettingsDto
java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.user.UpdateUserSettingsDto
public record UpdateUserSettingsDto(@Nullable @Email(message="must be a well-formed email address") String contactEmail)
extends Record
Request body to update the settings of the current user.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserSettingsDto(@Email(message="must be a well-formed email address") String contactEmail) Creates an instance of aUpdateUserSettingsDtorecord class. -
Method Summary
Modifier and TypeMethodDescription@Email(message="must be a well-formed email address") StringReturns the value of thecontactEmailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateUserSettingsDto
public UpdateUserSettingsDto(@Nullable @Email(message="must be a well-formed email address") @Email(message="must be a well-formed email address") String contactEmail) Creates an instance of aUpdateUserSettingsDtorecord class.- Parameters:
contactEmail- the value for thecontactEmailrecord 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). -
contactEmail
@Nullable @Email(message="must be a well-formed email address") public @Email(message="must be a well-formed email address") String contactEmail()Returns the value of thecontactEmailrecord component.- Returns:
- the value of the
contactEmailrecord component
-