Record Class CompanySignupRequest
java.lang.Object
java.lang.Record
inha.git.user.api.controller.dto.request.CompanySignupRequest
public record CompanySignupRequest(@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, @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String affiliation)
extends Record
SignupRequest는 회원 가입 요청 정보를 담는 DTO 클래스.
-
Constructor Summary
ConstructorsConstructorDescriptionCompanySignupRequest(@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, @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String affiliation) Creates an instance of aCompanySignupRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") StringReturns the value of theaffiliationrecord component.@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") Stringname()Returns the value of thenamerecord component.@NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") Stringpw()Returns the value of thepwrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompanySignupRequest
public CompanySignupRequest(@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, @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String affiliation) Creates an instance of aCompanySignupRequestrecord class.- Parameters:
email- the value for theemailrecord componentname- the value for thenamerecord componentpw- the value for thepwrecord componentaffiliation- the value for theaffiliationrecord component
-
-
Method Details
-
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. -
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. -
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
@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 theemailrecord component.- Returns:
- the value of the
emailrecord 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 thenamerecord component.- Returns:
- the value of the
namerecord 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 thepwrecord component.- Returns:
- the value of the
pwrecord component
-
affiliation
@NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1, max=12, message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") public @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String affiliation()Returns the value of theaffiliationrecord component.- Returns:
- the value of the
affiliationrecord component
-