Record Class TutorSignupRequest
java.lang.Object
java.lang.Record
inha.dayoook_e.user.api.controller.dto.request.TutorSignupRequest
public record TutorSignupRequest(@NotNull @Email String email, @NotEmpty String password, @NotEmpty String name, @NotNull Integer age, @NotNull Boolean gender, List<Integer> languageIdList, @NotNull String introduction, @NotNull String occupation, List<String> descriptionList, @NotNull KoreanLevel koreanLevel)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTutorSignupRequest
(@NotNull @Email String email, @NotEmpty String password, @NotEmpty String name, @NotNull Integer age, @NotNull Boolean gender, List<Integer> languageIdList, @NotNull String introduction, @NotNull String occupation, List<String> descriptionList, @NotNull KoreanLevel koreanLevel) Creates an instance of aTutorSignupRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integer
age()
Returns the value of theage
record component.Returns the value of thedescriptionList
record component.@NotNull @Email String
email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull Boolean
gender()
Returns the value of thegender
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull String
Returns the value of theintroduction
record component.@NotNull KoreanLevel
Returns the value of thekoreanLevel
record component.Returns the value of thelanguageIdList
record component.@NotEmpty String
name()
Returns the value of thename
record component.@NotNull String
Returns the value of theoccupation
record component.@NotEmpty String
password()
Returns the value of thepassword
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TutorSignupRequest
public TutorSignupRequest(@NotNull @Email @NotNull @Email String email, @NotEmpty @NotEmpty String password, @NotEmpty @NotEmpty String name, @NotNull @NotNull Integer age, @NotNull @NotNull Boolean gender, List<Integer> languageIdList, @NotNull @NotNull String introduction, @NotNull @NotNull String occupation, List<String> descriptionList, @NotNull @NotNull KoreanLevel koreanLevel) Creates an instance of aTutorSignupRequest
record class.- Parameters:
email
- the value for theemail
record componentpassword
- the value for thepassword
record componentname
- the value for thename
record componentage
- the value for theage
record componentgender
- the value for thegender
record componentlanguageIdList
- the value for thelanguageIdList
record componentintroduction
- the value for theintroduction
record componentoccupation
- the value for theoccupation
record componentdescriptionList
- the value for thedescriptionList
record componentkoreanLevel
- the value for thekoreanLevel
record 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
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
age
Returns the value of theage
record component.- Returns:
- the value of the
age
record component
-
gender
Returns the value of thegender
record component.- Returns:
- the value of the
gender
record component
-
languageIdList
Returns the value of thelanguageIdList
record component.- Returns:
- the value of the
languageIdList
record component
-
introduction
Returns the value of theintroduction
record component.- Returns:
- the value of the
introduction
record component
-
occupation
Returns the value of theoccupation
record component.- Returns:
- the value of the
occupation
record component
-
descriptionList
Returns the value of thedescriptionList
record component.- Returns:
- the value of the
descriptionList
record component
-
koreanLevel
Returns the value of thekoreanLevel
record component.- Returns:
- the value of the
koreanLevel
record component
-