Class TodoTask

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.TodoTask
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class TodoTask extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • TodoTask

      public TodoTask()
      Instantiates a new TodoTask and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static TodoTask 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 TodoTask
    • getAttachments

      @Nullable public List<AttachmentBase> getAttachments()
      Gets the attachments property value. A collection of file attachments for the task.
      Returns:
      a List<AttachmentBase>
    • getAttachmentSessions

      @Nullable public List<AttachmentSession> getAttachmentSessions()
      Gets the attachmentSessions property value. The attachmentSessions property
      Returns:
      a List<AttachmentSession>
    • getBody

      @Nullable public ItemBody getBody()
      Gets the body property value. The task body that typically contains information about the task.
      Returns:
      a ItemBody
    • getBodyLastModifiedDateTime

      @Nullable public OffsetDateTime getBodyLastModifiedDateTime()
      Gets the bodyLastModifiedDateTime property value. The date and time when the task body was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
      Returns:
      a OffsetDateTime
    • getCategories

      @Nullable public List<String> getCategories()
      Gets the categories property value. The categories associated with the task. Each category corresponds to the displayName property of an outlookCategory that the user has defined.
      Returns:
      a List<String>
    • getChecklistItems

      @Nullable public List<ChecklistItem> getChecklistItems()
      Gets the checklistItems property value. A collection of checklistItems linked to a task.
      Returns:
      a List<ChecklistItem>
    • getCompletedDateTime

      @Nullable public DateTimeTimeZone getCompletedDateTime()
      Gets the completedDateTime property value. The date and time in the specified time zone that the task was finished.
      Returns:
      a DateTimeTimeZone
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The date and time when the task was created. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
      Returns:
      a OffsetDateTime
    • getDueDateTime

      @Nullable public DateTimeTimeZone getDueDateTime()
      Gets the dueDateTime property value. The date and time in the specified time zone that the task is to be finished.
      Returns:
      a DateTimeTimeZone
    • getExtensions

      @Nullable public List<Extension> getExtensions()
      Gets the extensions property value. The collection of open extensions defined for the task. Nullable.
      Returns:
      a List<Extension>
    • 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>>
    • getHasAttachments

      @Nullable public Boolean getHasAttachments()
      Gets the hasAttachments property value. Indicates whether the task has attachments.
      Returns:
      a Boolean
    • getImportance

      @Nullable public Importance getImportance()
      Gets the importance property value. The importance property
      Returns:
      a Importance
    • getIsReminderOn

      @Nullable public Boolean getIsReminderOn()
      Gets the isReminderOn property value. Set to true if an alert is set to remind the user of the task.
      Returns:
      a Boolean
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. The date and time when the task was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
      Returns:
      a OffsetDateTime
    • getLinkedResources

      @Nullable public List<LinkedResource> getLinkedResources()
      Gets the linkedResources property value. A collection of resources linked to the task.
      Returns:
      a List<LinkedResource>
    • getRecurrence

      @Nullable public PatternedRecurrence getRecurrence()
      Gets the recurrence property value. The recurrence pattern for the task.
      Returns:
      a PatternedRecurrence
    • getReminderDateTime

      @Nullable public DateTimeTimeZone getReminderDateTime()
      Gets the reminderDateTime property value. The date and time in the specified time zone for a reminder alert of the task to occur.
      Returns:
      a DateTimeTimeZone
    • getStartDateTime

      @Nullable public DateTimeTimeZone getStartDateTime()
      Gets the startDateTime property value. The date and time in the specified time zone at which the task is scheduled to start.
      Returns:
      a DateTimeTimeZone
    • getStatus

      @Nullable public TaskStatus getStatus()
      Gets the status property value. The status property
      Returns:
      a TaskStatus
    • getTitle

      @Nullable public String getTitle()
      Gets the title property value. A brief description of the task.
      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
    • setAttachments

      public void setAttachments(@Nullable List<AttachmentBase> value)
      Sets the attachments property value. A collection of file attachments for the task.
      Parameters:
      value - Value to set for the attachments property.
    • setAttachmentSessions

      public void setAttachmentSessions(@Nullable List<AttachmentSession> value)
      Sets the attachmentSessions property value. The attachmentSessions property
      Parameters:
      value - Value to set for the attachmentSessions property.
    • setBody

      public void setBody(@Nullable ItemBody value)
      Sets the body property value. The task body that typically contains information about the task.
      Parameters:
      value - Value to set for the body property.
    • setBodyLastModifiedDateTime

      public void setBodyLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the bodyLastModifiedDateTime property value. The date and time when the task body was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
      Parameters:
      value - Value to set for the bodyLastModifiedDateTime property.
    • setCategories

      public void setCategories(@Nullable List<String> value)
      Sets the categories property value. The categories associated with the task. Each category corresponds to the displayName property of an outlookCategory that the user has defined.
      Parameters:
      value - Value to set for the categories property.
    • setChecklistItems

      public void setChecklistItems(@Nullable List<ChecklistItem> value)
      Sets the checklistItems property value. A collection of checklistItems linked to a task.
      Parameters:
      value - Value to set for the checklistItems property.
    • setCompletedDateTime

      public void setCompletedDateTime(@Nullable DateTimeTimeZone value)
      Sets the completedDateTime property value. The date and time in the specified time zone that the task was finished.
      Parameters:
      value - Value to set for the completedDateTime property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The date and time when the task was created. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDueDateTime

      public void setDueDateTime(@Nullable DateTimeTimeZone value)
      Sets the dueDateTime property value. The date and time in the specified time zone that the task is to be finished.
      Parameters:
      value - Value to set for the dueDateTime property.
    • setExtensions

      public void setExtensions(@Nullable List<Extension> value)
      Sets the extensions property value. The collection of open extensions defined for the task. Nullable.
      Parameters:
      value - Value to set for the extensions property.
    • setHasAttachments

      public void setHasAttachments(@Nullable Boolean value)
      Sets the hasAttachments property value. Indicates whether the task has attachments.
      Parameters:
      value - Value to set for the hasAttachments property.
    • setImportance

      public void setImportance(@Nullable Importance value)
      Sets the importance property value. The importance property
      Parameters:
      value - Value to set for the importance property.
    • setIsReminderOn

      public void setIsReminderOn(@Nullable Boolean value)
      Sets the isReminderOn property value. Set to true if an alert is set to remind the user of the task.
      Parameters:
      value - Value to set for the isReminderOn property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. The date and time when the task was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setLinkedResources

      public void setLinkedResources(@Nullable List<LinkedResource> value)
      Sets the linkedResources property value. A collection of resources linked to the task.
      Parameters:
      value - Value to set for the linkedResources property.
    • setRecurrence

      public void setRecurrence(@Nullable PatternedRecurrence value)
      Sets the recurrence property value. The recurrence pattern for the task.
      Parameters:
      value - Value to set for the recurrence property.
    • setReminderDateTime

      public void setReminderDateTime(@Nullable DateTimeTimeZone value)
      Sets the reminderDateTime property value. The date and time in the specified time zone for a reminder alert of the task to occur.
      Parameters:
      value - Value to set for the reminderDateTime property.
    • setStartDateTime

      public void setStartDateTime(@Nullable DateTimeTimeZone value)
      Sets the startDateTime property value. The date and time in the specified time zone at which the task is scheduled to start.
      Parameters:
      value - Value to set for the startDateTime property.
    • setStatus

      public void setStatus(@Nullable TaskStatus value)
      Sets the status property value. The status property
      Parameters:
      value - Value to set for the status property.
    • setTitle

      public void setTitle(@Nullable String value)
      Sets the title property value. A brief description of the task.
      Parameters:
      value - Value to set for the title property.