Class CourseCreateRequest
java.lang.Object
org.codewithmagret.rest.course.CourseCreateRequest
Data Transfer Object for creating a new Course.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the ID of the category to which the course belongs.getCode()Gets the unique code of the course to be created.Gets the ID of the instructor teaching the course.getTitle()Gets the title of the course to be created.voidsetCategoryId(Long categoryId) Sets the ID of the category to which the course belongs.voidSets the unique code of the course to be created.voidsetInstructorId(Long instructorId) Sets the ID of the instructor teaching the course.voidSets the title of the course to be created.
-
Constructor Details
-
CourseCreateRequest
public CourseCreateRequest()Default constructor for CourseCreateRequest.
-
-
Method Details
-
getTitle
Gets the title of the course to be created.- Returns:
- the title of the course
-
setTitle
Sets the title of the course to be created.- Parameters:
title- the title to set for the course
-
getCode
Gets the unique code of the course to be created.- Returns:
- the code of the course
-
setCode
Sets the unique code of the course to be created.- Parameters:
code- the code to set for the course
-
getCategoryId
Gets the ID of the category to which the course belongs.- Returns:
- the category ID of the course
-
setCategoryId
Sets the ID of the category to which the course belongs.- Parameters:
categoryId- the category ID to set for the course
-
getInstructorId
Gets the ID of the instructor teaching the course.- Returns:
- the instructor ID of the course
-
setInstructorId
Sets the ID of the instructor teaching the course.- Parameters:
instructorId- the instructor ID to set for the course
-