Record Class UsernamePasswordRequestDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.security.UsernamePasswordRequestDTO
- Record Components:
usernameEmail- username/email stringpassword- password
-
Constructor Summary
ConstructorsConstructorDescriptionUsernamePasswordRequestDTO(@NotBlank @Size(min=3,max=75) String usernameEmail, @NotBlank @Size(min=5,max=255) String password) Creates an instance of aUsernamePasswordRequestDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank @Size(min=5,max=255) Stringpassword()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.@NotBlank @Size(min=3,max=75) StringReturns the value of theusernameEmailrecord component.
-
Constructor Details
-
UsernamePasswordRequestDTO
public UsernamePasswordRequestDTO(@NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String usernameEmail, @NotBlank @Size(min=5,max=255) @NotBlank @Size(min=5,max=255) String password) Creates an instance of aUsernamePasswordRequestDTOrecord class.- Parameters:
usernameEmail- the value for theusernameEmailrecord componentpassword- the value for thepasswordrecord 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). -
usernameEmail
Returns the value of theusernameEmailrecord component.- Returns:
- the value of the
usernameEmailrecord component
-
password
-