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
  • Constructor Details

    • EducationAssignment

      public EducationAssignment()
      Instantiates a new EducationAssignment 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

      @Nullable public EducationAddedStudentAction 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

      @Nullable public EducationAddToCalendarOptions 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

      @Nullable public Boolean 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

      @Nullable public 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

      @Nullable public OffsetDateTime 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

      @Nullable public 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

      @Nullable public EducationAssignmentRecipient 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

      @Nullable public List<EducationCategory> 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

      @Nullable public String getClassId()
      Gets the classId property value. Class to which this assignment belongs.
      Returns:
      a String
    • getCloseDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public IdentitySet getCreatedBy()
      Gets the createdBy property value. Who created the assignment.
      Returns:
      a IdentitySet
    • getCreatedDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public String getDisplayName()
      Gets the displayName property value. Name of the assignment.
      Returns:
      a String
    • getDueDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public String 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGrading

      @Nullable public EducationAssignmentGradeType getGrading()
      Gets the grading property value. How the assignment will be graded.
      Returns:
      a EducationAssignmentGradeType
    • getGradingCategory

      @Nullable public EducationGradingCategory getGradingCategory()
      Gets the gradingCategory property value. When set, enables users to weight assignments differently when computing a class average grade.
      Returns:
      a EducationGradingCategory
    • getInstructions

      @Nullable public EducationItemBody 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

      @Nullable public IdentitySet getLastModifiedBy()
      Gets the lastModifiedBy property value. Who last modified the assignment.
      Returns:
      a IdentitySet
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public String getModuleUrl()
      Gets the moduleUrl property value. The URL of the module from which to access the assignment.
      Returns:
      a String
    • getNotificationChannelUrl

      @Nullable public 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

      @Nullable public List<EducationAssignmentResource> 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

      @Nullable public String getResourcesFolderUrl()
      Gets the resourcesFolderUrl property value. Folder URL where all the file resources for this assignment are stored.
      Returns:
      a String
    • getRubric

      @Nullable public EducationRubric getRubric()
      Gets the rubric property value. When set, the grading rubric attached to this assignment.
      Returns:
      a EducationRubric
    • getStatus

      @Nullable public EducationAssignmentStatus 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

      @Nullable public List<EducationSubmission> 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

      @Nullable public String 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAddedStudentAction

      public void setAddedStudentAction(@Nullable EducationAddedStudentAction value)
      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

      public void setAddToCalendarAction(@Nullable EducationAddToCalendarOptions value)
      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

      public void setAllowLateSubmissions(@Nullable Boolean value)
      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

      public void setAllowStudentsToAddResourcesToSubmission(@Nullable Boolean value)
      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

      public void setAssignDateTime(@Nullable OffsetDateTime value)
      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

      public void setAssignedDateTime(@Nullable OffsetDateTime value)
      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

      public void setAssignTo(@Nullable EducationAssignmentRecipient value)
      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

      public void setCategories(@Nullable List<EducationCategory> value)
      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

      public void setClassId(@Nullable String value)
      Sets the classId property value. Class to which this assignment belongs.
      Parameters:
      value - Value to set for the classId property.
    • setCloseDateTime

      public void setCloseDateTime(@Nullable OffsetDateTime value)
      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

      public void setCreatedBy(@Nullable IdentitySet value)
      Sets the createdBy property value. Who created the assignment.
      Parameters:
      value - Value to set for the createdBy property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Name of the assignment.
      Parameters:
      value - Value to set for the displayName property.
    • setDueDateTime

      public void setDueDateTime(@Nullable OffsetDateTime value)
      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

      public void setFeedbackResourcesFolderUrl(@Nullable String value)
      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

      public void setGrading(@Nullable EducationAssignmentGradeType value)
      Sets the grading property value. How the assignment will be graded.
      Parameters:
      value - Value to set for the grading property.
    • setGradingCategory

      public void setGradingCategory(@Nullable EducationGradingCategory value)
      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

      public void setInstructions(@Nullable EducationItemBody value)
      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

      public void setLastModifiedBy(@Nullable IdentitySet value)
      Sets the lastModifiedBy property value. Who last modified the assignment.
      Parameters:
      value - Value to set for the lastModifiedBy property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      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

      public void setModuleUrl(@Nullable String value)
      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

      public void setNotificationChannelUrl(@Nullable String value)
      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

      public void setResources(@Nullable List<EducationAssignmentResource> value)
      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

      public void setResourcesFolderUrl(@Nullable String value)
      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

      public void setRubric(@Nullable EducationRubric value)
      Sets the rubric property value. When set, the grading rubric attached to this assignment.
      Parameters:
      value - Value to set for the rubric property.
    • setStatus

      public void setStatus(@Nullable EducationAssignmentStatus value)
      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

      public void setSubmissions(@Nullable List<EducationSubmission> value)
      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

      public void setWebUrl(@Nullable String value)
      Sets the webUrl property value. The deep link URL for the given assignment.
      Parameters:
      value - Value to set for the webUrl property.