Class CourseCreateRequest

java.lang.Object
org.codewithmagret.rest.course.CourseCreateRequest

public class CourseCreateRequest extends Object
Data Transfer Object for creating a new Course.
  • Constructor Details

    • CourseCreateRequest

      public CourseCreateRequest()
      Default constructor for CourseCreateRequest.
  • Method Details

    • getTitle

      public String getTitle()
      Gets the title of the course to be created.
      Returns:
      the title of the course
    • setTitle

      public void setTitle(String title)
      Sets the title of the course to be created.
      Parameters:
      title - the title to set for the course
    • getCode

      public String getCode()
      Gets the unique code of the course to be created.
      Returns:
      the code of the course
    • setCode

      public void setCode(String code)
      Sets the unique code of the course to be created.
      Parameters:
      code - the code to set for the course
    • getCategoryId

      public Long getCategoryId()
      Gets the ID of the category to which the course belongs.
      Returns:
      the category ID of the course
    • setCategoryId

      public void setCategoryId(Long categoryId)
      Sets the ID of the category to which the course belongs.
      Parameters:
      categoryId - the category ID to set for the course
    • getInstructorId

      public Long getInstructorId()
      Gets the ID of the instructor teaching the course.
      Returns:
      the instructor ID of the course
    • setInstructorId

      public void setInstructorId(Long instructorId)
      Sets the ID of the instructor teaching the course.
      Parameters:
      instructorId - the instructor ID to set for the course