Record Class ProfessorSignupRequest

java.lang.Object
java.lang.Record
inha.git.user.api.controller.dto.request.ProfessorSignupRequest

public record ProfessorSignupRequest(@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String email, @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String name, @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String pw, @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String userNumber, @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> departmentIdList) extends Record
SignupRequest는 회원 가입 요청 정보를 담는 DTO 클래스.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfessorSignupRequest(@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String email, @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String name, @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String pw, @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String userNumber, @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> departmentIdList)
    Creates an instance of a ProfessorSignupRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer>
    Returns the value of the departmentIdList record component.
    @NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String
    Returns the value of the name record component.
    @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String
    pw()
    Returns the value of the pw record component.
    final String
    Returns a string representation of this record class.
    @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String
    Returns the value of the userNumber record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ProfessorSignupRequest

      public ProfessorSignupRequest(@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email @NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String email, @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String name, @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String pw, @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String userNumber, @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> departmentIdList)
      Creates an instance of a ProfessorSignupRequest record class.
      Parameters:
      email - the value for the email record component
      name - the value for the name record component
      pw - the value for the pw record component
      userNumber - the value for the userNumber record component
      departmentIdList - the value for the departmentIdList 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

      @NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email public @NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • name

      @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") public @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • pw

      @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") public @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String pw()
      Returns the value of the pw record component.
      Returns:
      the value of the pw record component
    • userNumber

      @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6, max=6, message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") public @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String userNumber()
      Returns the value of the userNumber record component.
      Returns:
      the value of the userNumber record component
    • departmentIdList

      @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1, message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") public @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> departmentIdList()
      Returns the value of the departmentIdList record component.
      Returns:
      the value of the departmentIdList record component