Class InstructorsByStudent

java.lang.Object
org.codewithmagret.rest.report.dto.InstructorsByStudent

public class InstructorsByStudent extends Object
DTO for the report of instructors by student.
  • Constructor Details

    • InstructorsByStudent

      public InstructorsByStudent()
      Default constructor for JSON deserialization.
    • InstructorsByStudent

      public InstructorsByStudent(Long studentId, String firstName, String lastName, List<SimpleInstructor> instructors)
      Constructor to create an instance of InstructorsByStudent.
      Parameters:
      studentId - The ID of the student.
      firstName - The first name of the student.
      lastName - The last name of the student.
      instructors - The list of instructors associated with the student.
  • Method Details

    • getStudentId

      public Long getStudentId()
      Getters and setters for the fields.
      Returns:
      the student ID, first name, last name, and list of instructors.
    • setStudentId

      public void setStudentId(Long studentId)
      Set the student ID.
      Parameters:
      studentId - the ID of the student to set
    • getFirstName

      public String getFirstName()
      Get the first name of the student.
      Returns:
      the first name of the student
    • setFirstName

      public void setFirstName(String firstName)
      Set the first name of the student.
      Parameters:
      firstName - the first name of the student to set
    • getLastName

      public String getLastName()
      Get the last name of the student.
      Returns:
      the last name of the student
    • setLastName

      public void setLastName(String lastName)
      Set the last name of the student.
      Parameters:
      lastName - the last name of the student to set
    • getInstructors

      public List<SimpleInstructor> getInstructors()
      Get the list of instructors associated with the student.
      Returns:
      the list of instructors
    • setInstructors

      public void setInstructors(List<SimpleInstructor> instructors)
      Set the list of instructors associated with the student.
      Parameters:
      instructors - the list of instructors to set