Record Class CreateUpdateUserDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.security.CreateUpdateUserDTO
Record Components:
email - user email
firstName - user first name
lastName - user last name
username - username
password - password
timeZone - 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

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a CreateUpdateUserDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotBlank @Email @Size(max=255) String
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotBlank @Size(min=3,max=75) String
    Returns the value of the firstName record component.
    final int
    Returns a hash code value for this object.
    @NotBlank @Size(min=3,max=75) String
    Returns the value of the lastName record component.
    @Size(min=8,max=255) String
    Returns the value of the password record component.
    @NotBlank @Size(max=255) String
    Returns the value of the timeZone record component.
    final String
    Returns a string representation of this record class.
    @NotBlank @Size(min=3,max=75) String
    Returns the value of the username record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a CreateUpdateUserDTO record class.
      Parameters:
      email - the value for the email record component
      firstName - the value for the firstName record component
      lastName - the value for the lastName record component
      username - the value for the username record component
      password - the value for the password record component
      timeZone - the value for the timeZone record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • email

      @NotBlank @Email @Size(max=255) public @NotBlank @Email @Size(max=255) String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • firstName

      @NotBlank @Size(min=3, max=75) public @NotBlank @Size(min=3,max=75) String firstName()
      Returns the value of the firstName record component.
      Returns:
      the value of the firstName record component
    • lastName

      @NotBlank @Size(min=3, max=75) public @NotBlank @Size(min=3,max=75) String lastName()
      Returns the value of the lastName record component.
      Returns:
      the value of the lastName record component
    • username

      @NotBlank @Size(min=3, max=75) public @NotBlank @Size(min=3,max=75) String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • password

      @Size(min=8, max=255) public @Size(min=8,max=255) String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • timeZone

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String timeZone()
      Returns the value of the timeZone record component.
      Returns:
      the value of the timeZone record component