Record Class CreateUpdateUserDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.security.CreateUpdateUserDTO
- Record Components:
email- user emailfirstName- user first namelastName- user last nameusername- usernamepassword- passwordtimeZone- time zone
public record CreateUpdateUserDTO(@NotBlank @Email @Size(max=255) String email, @NotBlank @Size(min=3,max=75) String firstName, @NotBlank @Size(min=3,max=75) String lastName, @NotBlank @Size(min=3,max=75) String username, @Size(min=8,max=255) String password, @NotBlank @Size(max=255) String timeZone)
extends Record
Request object for creating and updating
Users.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdateUserDTO(@NotBlank @Email @Size(max=255) String email, @NotBlank @Size(min=3,max=75) String firstName, @NotBlank @Size(min=3,max=75) String lastName, @NotBlank @Size(min=3,max=75) String username, @Size(min=8,max=255) String password, @NotBlank @Size(max=255) String timeZone) Creates an instance of aCreateUpdateUserDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank @Email @Size(max=255) Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotBlank @Size(min=3,max=75) StringReturns the value of thefirstNamerecord component.final inthashCode()Returns a hash code value for this object.@NotBlank @Size(min=3,max=75) StringlastName()Returns the value of thelastNamerecord component.@Size(min=8,max=255) Stringpassword()Returns the value of thepasswordrecord component.@NotBlank @Size(max=255) StringtimeZone()Returns the value of thetimeZonerecord component.final StringtoString()Returns a string representation of this record class.@NotBlank @Size(min=3,max=75) Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
CreateUpdateUserDTO
public CreateUpdateUserDTO(@NotBlank @Email @Size(max=255) @NotBlank @Email @Size(max=255) String email, @NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String firstName, @NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String lastName, @NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String username, @Size(min=8,max=255) @Size(min=8,max=255) String password, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String timeZone) Creates an instance of aCreateUpdateUserDTOrecord class.- Parameters:
email- the value for theemailrecord componentfirstName- the value for thefirstNamerecord componentlastName- the value for thelastNamerecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componenttimeZone- the value for thetimeZonerecord 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). -
email
-
firstName
-
lastName
-
username
-
password
-
timeZone
-