copyHistory = $copyHistory; } /** * @return CopyHistory[] */ public function getCopyHistory() { return $this->copyHistory; } /** * Immutable. Identifier of the course. * * @param string $courseId */ public function setCourseId($courseId) { $this->courseId = $courseId; } /** * @return string */ public function getCourseId() { return $this->courseId; } /** * Date, in UTC, that work on this attachment is due. This must be specified * if `due_time` is specified. * * @param Date $dueDate */ public function setDueDate(Date $dueDate) { $this->dueDate = $dueDate; } /** * @return Date */ public function getDueDate() { return $this->dueDate; } /** * Time of day, in UTC, that work on this attachment is due. This must be * specified if `due_date` is specified. * * @param TimeOfDay $dueTime */ public function setDueTime(TimeOfDay $dueTime) { $this->dueTime = $dueTime; } /** * @return TimeOfDay */ public function getDueTime() { return $this->dueTime; } /** * Immutable. Classroom-assigned identifier for this attachment, unique per * post. * * @param string $id */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * Immutable. Identifier of the `Announcement`, `CourseWork`, or * `CourseWorkMaterial` under which the attachment is attached. Unique per * course. * * @param string $itemId */ public function setItemId($itemId) { $this->itemId = $itemId; } /** * @return string */ public function getItemId() { return $this->itemId; } public function setMaxPoints($maxPoints) { $this->maxPoints = $maxPoints; } public function getMaxPoints() { return $this->maxPoints; } /** * Immutable. Deprecated, use `item_id` instead. * * @deprecated * @param string $postId */ public function setPostId($postId) { $this->postId = $postId; } /** * @deprecated * @return string */ public function getPostId() { return $this->postId; } /** * Required. URI to show the student view of the attachment. The URI will be * opened in an iframe with the `courseId`, `itemId`, `itemType`, and * `attachmentId` query parameters set. * * @param EmbedUri $studentViewUri */ public function setStudentViewUri(EmbedUri $studentViewUri) { $this->studentViewUri = $studentViewUri; } /** * @return EmbedUri */ public function getStudentViewUri() { return $this->studentViewUri; } /** * URI for the teacher to see student work on the attachment, if applicable. * The URI will be opened in an iframe with the `courseId`, `itemId`, * `itemType`, `attachmentId`, and `submissionId` query parameters set. This * is the same `submissionId` returned in the [`AddOnContext.studentContext`]( * //devsite.google.com/classroom/reference/rest/v1/AddOnContext#StudentContex * t) field when a student views the attachment. If the URI is omitted or * removed, `max_points` will also be discarded. * * @param EmbedUri $studentWorkReviewUri */ public function setStudentWorkReviewUri(EmbedUri $studentWorkReviewUri) { $this->studentWorkReviewUri = $studentWorkReviewUri; } /** * @return EmbedUri */ public function getStudentWorkReviewUri() { return $this->studentWorkReviewUri; } /** * Required. URI to show the teacher view of the attachment. The URI will be * opened in an iframe with the `courseId`, `itemId`, `itemType`, and * `attachmentId` query parameters set. * * @param EmbedUri $teacherViewUri */ public function setTeacherViewUri(EmbedUri $teacherViewUri) { $this->teacherViewUri = $teacherViewUri; } /** * @return EmbedUri */ public function getTeacherViewUri() { return $this->teacherViewUri; } /** * Required. Title of this attachment. The title must be between 1 and 1000 * characters. * * @param string $title */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AddOnAttachment::class, 'Google_Service_Classroom_AddOnAttachment');