Record Class UpdateUserRequest
java.lang.Object
java.lang.Record
fr.tiogars.domaintemplate.domains.auth.user.models.UpdateUserRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.password()Returns the value of thepasswordrecord component.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.@NotBlank Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
UpdateUserRequest
public UpdateUserRequest(@NotBlank @NotBlank String username, String password, @NotNull @NotNull Boolean enabled, @NotEmpty @NotEmpty Set<@NotBlank String> roles) Creates an instance of aUpdateUserRequestrecord class.- Parameters:
username- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentenabled- the value for theenabledrecord componentroles- the value for therolesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
roles
-