Class InstructorsByStudent
java.lang.Object
org.codewithmagret.rest.report.dto.InstructorsByStudent
DTO for the report of instructors by student.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for JSON deserialization.InstructorsByStudent(Long studentId, String firstName, String lastName, List<SimpleInstructor> instructors) Constructor to create an instance of InstructorsByStudent. -
Method Summary
Modifier and TypeMethodDescriptionGet the first name of the student.Get the list of instructors associated with the student.Get the last name of the student.Getters and setters for the fields.voidsetFirstName(String firstName) Set the first name of the student.voidsetInstructors(List<SimpleInstructor> instructors) Set the list of instructors associated with the student.voidsetLastName(String lastName) Set the last name of the student.voidsetStudentId(Long studentId) Set the student ID.
-
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
Getters and setters for the fields.- Returns:
- the student ID, first name, last name, and list of instructors.
-
setStudentId
Set the student ID.- Parameters:
studentId- the ID of the student to set
-
getFirstName
Get the first name of the student.- Returns:
- the first name of the student
-
setFirstName
Set the first name of the student.- Parameters:
firstName- the first name of the student to set
-
getLastName
-
setLastName
Set the last name of the student.- Parameters:
lastName- the last name of the student to set
-
getInstructors
Get the list of instructors associated with the student.- Returns:
- the list of instructors
-
setInstructors
Set the list of instructors associated with the student.- Parameters:
instructors- the list of instructors to set
-