Package com.microsoft.graph.models
Class EducationAssignment
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.EducationAssignment
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class EducationAssignment
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EducationAssignment
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the addedStudentAction property value.Gets the addToCalendarAction property value.Gets the allowLateSubmissions property value.Gets the allowStudentsToAddResourcesToSubmission property value.Gets the assignDateTime property value.Gets the assignedDateTime property value.Gets the assignTo property value.Gets the categories property value.Gets the classId property value.Gets the closeDateTime property value.Gets the createdBy property value.Gets the createdDateTime property value.Gets the displayName property value.Gets the dueDateTime property value.Gets the feedbackResourcesFolderUrl property value.The deserialization information for the current modelGets the grading property value.Gets the gradingCategory property value.Gets the instructions property value.Gets the lastModifiedBy property value.Gets the lastModifiedDateTime property value.Gets the moduleUrl property value.Gets the notificationChannelUrl property value.Gets the resources property value.Gets the resourcesFolderUrl property value.Gets the rubric property value.Gets the status property value.Gets the submissions property value.Gets the webUrl property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the addedStudentAction property value.void
Sets the addToCalendarAction property value.void
setAllowLateSubmissions
(Boolean value) Sets the allowLateSubmissions property value.void
Sets the allowStudentsToAddResourcesToSubmission property value.void
setAssignDateTime
(OffsetDateTime value) Sets the assignDateTime property value.void
Sets the assignedDateTime property value.void
Sets the assignTo property value.void
setCategories
(List<EducationCategory> value) Sets the categories property value.void
setClassId
(String value) Sets the classId property value.void
setCloseDateTime
(OffsetDateTime value) Sets the closeDateTime property value.void
setCreatedBy
(IdentitySet value) Sets the createdBy property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDisplayName
(String value) Sets the displayName property value.void
setDueDateTime
(OffsetDateTime value) Sets the dueDateTime property value.void
Sets the feedbackResourcesFolderUrl property value.void
Sets the grading property value.void
Sets the gradingCategory property value.void
setInstructions
(EducationItemBody value) Sets the instructions property value.void
setLastModifiedBy
(IdentitySet value) Sets the lastModifiedBy property value.void
Sets the lastModifiedDateTime property value.void
setModuleUrl
(String value) Sets the moduleUrl property value.void
setNotificationChannelUrl
(String value) Sets the notificationChannelUrl property value.void
Sets the resources property value.void
setResourcesFolderUrl
(String value) Sets the resourcesFolderUrl property value.void
setRubric
(EducationRubric value) Sets the rubric property value.void
Sets the status property value.void
setSubmissions
(List<EducationSubmission> value) Sets the submissions property value.void
Sets the webUrl property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
EducationAssignment
public EducationAssignment()Instantiates a newEducationAssignment
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static EducationAssignment createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
EducationAssignment
-
getAddedStudentAction
Gets the addedStudentAction property value. Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none. Supported values are: none, assignIfOpen. For example, a teacher can use assignIfOpen to indicate that an assignment should be assigned to any new student who joins the class while the assignment is still open, and none to indicate that an assignment shouldn't be assigned to new students.- Returns:
- a
EducationAddedStudentAction
-
getAddToCalendarAction
Gets the addToCalendarAction property value. Optional field to control the assignment behavior for adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: studentsOnly. The default value is none.- Returns:
- a
EducationAddToCalendarOptions
-
getAllowLateSubmissions
Gets the allowLateSubmissions property value. Identifies whether students can submit after the due date. If this property isn't specified during create, it defaults to true.- Returns:
- a
Boolean
-
getAllowStudentsToAddResourcesToSubmission
Gets the allowStudentsToAddResourcesToSubmission property value. Identifies whether students can add their own resources to a submission or if they can only modify resources added by the teacher.- Returns:
- a
Boolean
-
getAssignDateTime
Gets the assignDateTime property value. The date when the assignment should become active. If in the future, the assignment isn't shown to the student until this date. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getAssignedDateTime
Gets the assignedDateTime property value. The moment that the assignment was published to students and the assignment shows up on the students timeline. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getAssignTo
Gets the assignTo property value. Which users, or whole class should receive a submission object once the assignment is published.- Returns:
- a
EducationAssignmentRecipient
-
getCategories
Gets the categories property value. When set, enables users to easily find assignments of a given type. Read-only. Nullable.- Returns:
- a
List<EducationCategory>
-
getClassId
Gets the classId property value. Class to which this assignment belongs.- Returns:
- a
String
-
getCloseDateTime
Gets the closeDateTime property value. Date when the assignment is closed for submissions. This is an optional field that can be null if the assignment doesn't allowLateSubmissions or when the closeDateTime is the same as the dueDateTime. But if specified, then the closeDateTime must be greater than or equal to the dueDateTime. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getCreatedBy
Gets the createdBy property value. Who created the assignment.- Returns:
- a
IdentitySet
-
getCreatedDateTime
Gets the createdDateTime property value. Moment when the assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getDisplayName
Gets the displayName property value. Name of the assignment.- Returns:
- a
String
-
getDueDateTime
Gets the dueDateTime property value. Date when the students assignment is due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getFeedbackResourcesFolderUrl
Gets the feedbackResourcesFolderUrl property value. Folder URL where all the feedback file resources for this assignment are stored.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getGrading
Gets the grading property value. How the assignment will be graded.- Returns:
- a
EducationAssignmentGradeType
-
getGradingCategory
Gets the gradingCategory property value. When set, enables users to weight assignments differently when computing a class average grade.- Returns:
- a
EducationGradingCategory
-
getInstructions
Gets the instructions property value. Instructions for the assignment. The instructions and the display name tell the student what to do.- Returns:
- a
EducationItemBody
-
getLastModifiedBy
Gets the lastModifiedBy property value. Who last modified the assignment.- Returns:
- a
IdentitySet
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. The date and time on which the assignment was modified. A student submission doesn't modify the assignment; only teachers can update assignments. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getModuleUrl
Gets the moduleUrl property value. The URL of the module from which to access the assignment.- Returns:
- a
String
-
getNotificationChannelUrl
Gets the notificationChannelUrl property value. Optional field to specify the URL of the channel to post the assignment publish notification. If not specified or null, defaults to the General channel. This field only applies to assignments where the assignTo value is educationAssignmentClassRecipient. Updating the notificationChannelUrl isn't allowed after the assignment is published.- Returns:
- a
String
-
getResources
Gets the resources property value. Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable.- Returns:
- a
List<EducationAssignmentResource>
-
getResourcesFolderUrl
Gets the resourcesFolderUrl property value. Folder URL where all the file resources for this assignment are stored.- Returns:
- a
String
-
getRubric
Gets the rubric property value. When set, the grading rubric attached to this assignment.- Returns:
- a
EducationRubric
-
getStatus
Gets the status property value. Status of the assignment. You can't PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue, inactive. Use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive.- Returns:
- a
EducationAssignmentStatus
-
getSubmissions
Gets the submissions property value. Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable.- Returns:
- a
List<EducationSubmission>
-
getWebUrl
Gets the webUrl property value. The deep link URL for the given assignment.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAddedStudentAction
Sets the addedStudentAction property value. Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none. Supported values are: none, assignIfOpen. For example, a teacher can use assignIfOpen to indicate that an assignment should be assigned to any new student who joins the class while the assignment is still open, and none to indicate that an assignment shouldn't be assigned to new students.- Parameters:
value
- Value to set for the addedStudentAction property.
-
setAddToCalendarAction
Sets the addToCalendarAction property value. Optional field to control the assignment behavior for adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: studentsOnly. The default value is none.- Parameters:
value
- Value to set for the addToCalendarAction property.
-
setAllowLateSubmissions
Sets the allowLateSubmissions property value. Identifies whether students can submit after the due date. If this property isn't specified during create, it defaults to true.- Parameters:
value
- Value to set for the allowLateSubmissions property.
-
setAllowStudentsToAddResourcesToSubmission
Sets the allowStudentsToAddResourcesToSubmission property value. Identifies whether students can add their own resources to a submission or if they can only modify resources added by the teacher.- Parameters:
value
- Value to set for the allowStudentsToAddResourcesToSubmission property.
-
setAssignDateTime
Sets the assignDateTime property value. The date when the assignment should become active. If in the future, the assignment isn't shown to the student until this date. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the assignDateTime property.
-
setAssignedDateTime
Sets the assignedDateTime property value. The moment that the assignment was published to students and the assignment shows up on the students timeline. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the assignedDateTime property.
-
setAssignTo
Sets the assignTo property value. Which users, or whole class should receive a submission object once the assignment is published.- Parameters:
value
- Value to set for the assignTo property.
-
setCategories
Sets the categories property value. When set, enables users to easily find assignments of a given type. Read-only. Nullable.- Parameters:
value
- Value to set for the categories property.
-
setClassId
Sets the classId property value. Class to which this assignment belongs.- Parameters:
value
- Value to set for the classId property.
-
setCloseDateTime
Sets the closeDateTime property value. Date when the assignment is closed for submissions. This is an optional field that can be null if the assignment doesn't allowLateSubmissions or when the closeDateTime is the same as the dueDateTime. But if specified, then the closeDateTime must be greater than or equal to the dueDateTime. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the closeDateTime property.
-
setCreatedBy
Sets the createdBy property value. Who created the assignment.- Parameters:
value
- Value to set for the createdBy property.
-
setCreatedDateTime
Sets the createdDateTime property value. Moment when the assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the createdDateTime property.
-
setDisplayName
Sets the displayName property value. Name of the assignment.- Parameters:
value
- Value to set for the displayName property.
-
setDueDateTime
Sets the dueDateTime property value. Date when the students assignment is due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the dueDateTime property.
-
setFeedbackResourcesFolderUrl
Sets the feedbackResourcesFolderUrl property value. Folder URL where all the feedback file resources for this assignment are stored.- Parameters:
value
- Value to set for the feedbackResourcesFolderUrl property.
-
setGrading
Sets the grading property value. How the assignment will be graded.- Parameters:
value
- Value to set for the grading property.
-
setGradingCategory
Sets the gradingCategory property value. When set, enables users to weight assignments differently when computing a class average grade.- Parameters:
value
- Value to set for the gradingCategory property.
-
setInstructions
Sets the instructions property value. Instructions for the assignment. The instructions and the display name tell the student what to do.- Parameters:
value
- Value to set for the instructions property.
-
setLastModifiedBy
Sets the lastModifiedBy property value. Who last modified the assignment.- Parameters:
value
- Value to set for the lastModifiedBy property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. The date and time on which the assignment was modified. A student submission doesn't modify the assignment; only teachers can update assignments. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setModuleUrl
Sets the moduleUrl property value. The URL of the module from which to access the assignment.- Parameters:
value
- Value to set for the moduleUrl property.
-
setNotificationChannelUrl
Sets the notificationChannelUrl property value. Optional field to specify the URL of the channel to post the assignment publish notification. If not specified or null, defaults to the General channel. This field only applies to assignments where the assignTo value is educationAssignmentClassRecipient. Updating the notificationChannelUrl isn't allowed after the assignment is published.- Parameters:
value
- Value to set for the notificationChannelUrl property.
-
setResources
Sets the resources property value. Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable.- Parameters:
value
- Value to set for the resources property.
-
setResourcesFolderUrl
Sets the resourcesFolderUrl property value. Folder URL where all the file resources for this assignment are stored.- Parameters:
value
- Value to set for the resourcesFolderUrl property.
-
setRubric
Sets the rubric property value. When set, the grading rubric attached to this assignment.- Parameters:
value
- Value to set for the rubric property.
-
setStatus
Sets the status property value. Status of the assignment. You can't PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue, inactive. Use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive.- Parameters:
value
- Value to set for the status property.
-
setSubmissions
Sets the submissions property value. Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable.- Parameters:
value
- Value to set for the submissions property.
-
setWebUrl
Sets the webUrl property value. The deep link URL for the given assignment.- Parameters:
value
- Value to set for the webUrl property.
-