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 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 a TutorSignupRequest record class.
      Parameters:
      email - the value for the email record component
      password - the value for the password record component
      name - the value for the name record component
      age - the value for the age record component
      gender - the value for the gender record component
      languageIdList - the value for the languageIdList record component
      introduction - the value for the introduction record component
      occupation - the value for the occupation record component
      descriptionList - the value for the descriptionList record component
      koreanLevel - the value for the koreanLevel 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

      @NotNull @Email public @NotNull @Email String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • password

      @NotEmpty public @NotEmpty String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • name

      @NotEmpty public @NotEmpty String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • age

      @NotNull public @NotNull Integer age()
      Returns the value of the age record component.
      Returns:
      the value of the age record component
    • gender

      @NotNull public @NotNull Boolean gender()
      Returns the value of the gender record component.
      Returns:
      the value of the gender record component
    • languageIdList

      public List<Integer> languageIdList()
      Returns the value of the languageIdList record component.
      Returns:
      the value of the languageIdList record component
    • introduction

      @NotNull public @NotNull String introduction()
      Returns the value of the introduction record component.
      Returns:
      the value of the introduction record component
    • occupation

      @NotNull public @NotNull String occupation()
      Returns the value of the occupation record component.
      Returns:
      the value of the occupation record component
    • descriptionList

      public List<String> descriptionList()
      Returns the value of the descriptionList record component.
      Returns:
      the value of the descriptionList record component
    • koreanLevel

      @NotNull public @NotNull KoreanLevel koreanLevel()
      Returns the value of the koreanLevel record component.
      Returns:
      the value of the koreanLevel record component