Record Class UserResponseDTO

java.lang.Object
java.lang.Record
com.alpaca.dto.response.UserResponseDTO

public record UserResponseDTO(UUID id, String email, List<RoleResponseDTO> roles, ProfileResponseDTO profile, AdvertiserResponseDTO advertiser) extends Record
  • Field Details

    • id

      private final UUID id
      The field for the id record component.
    • email

      private final String email
      The field for the email record component.
    • roles

      private final List<RoleResponseDTO> roles
      The field for the roles record component.
    • profile

      private final ProfileResponseDTO profile
      The field for the profile record component.
    • advertiser

      private final AdvertiserResponseDTO advertiser
      The field for the advertiser record component.
  • Constructor Details

    • UserResponseDTO

      public UserResponseDTO(UUID id, String email, List<RoleResponseDTO> roles, ProfileResponseDTO profile, AdvertiserResponseDTO advertiser)
      Creates an instance of a UserResponseDTO record class.
      Parameters:
      id - the value for the id record component
      email - the value for the email record component
      roles - the value for the roles record component
      profile - the value for the profile record component
      advertiser - the value for the advertiser 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.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • roles

      public List<RoleResponseDTO> roles()
      Returns the value of the roles record component.
      Returns:
      the value of the roles record component
    • profile

      public ProfileResponseDTO profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • advertiser

      public AdvertiserResponseDTO advertiser()
      Returns the value of the advertiser record component.
      Returns:
      the value of the advertiser record component