Class PlannerTask

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

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

    • PlannerTask

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

    • createFromDiscriminatorValue

      @Nonnull public static PlannerTask 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 PlannerTask
    • getActiveChecklistItemCount

      @Nullable public Integer getActiveChecklistItemCount()
      Gets the activeChecklistItemCount property value. Number of checklist items with value set to false, representing incomplete items.
      Returns:
      a Integer
    • getAppliedCategories

      @Nullable public PlannerAppliedCategories getAppliedCategories()
      Gets the appliedCategories property value. The categories to which the task has been applied. See applied Categories for possible values.
      Returns:
      a PlannerAppliedCategories
    • getAssignedToTaskBoardFormat

      @Nullable public PlannerAssignedToTaskBoardTaskFormat getAssignedToTaskBoardFormat()
      Gets the assignedToTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo.
      Returns:
      a PlannerAssignedToTaskBoardTaskFormat
    • getAssigneePriority

      @Nullable public String getAssigneePriority()
      Gets the assigneePriority property value. Hint used to order items of this type in a list view. The format is defined as outlined here.
      Returns:
      a String
    • getAssignments

      @Nullable public PlannerAssignments getAssignments()
      Gets the assignments property value. The set of assignees the task is assigned to.
      Returns:
      a PlannerAssignments
    • getBucketId

      @Nullable public String getBucketId()
      Gets the bucketId property value. Bucket ID to which the task belongs. The bucket needs to be in the plan that the task is in. It's 28 characters long and case-sensitive. Format validation is done on the service.
      Returns:
      a String
    • getBucketTaskBoardFormat

      @Nullable public PlannerBucketTaskBoardTaskFormat getBucketTaskBoardFormat()
      Gets the bucketTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket.
      Returns:
      a PlannerBucketTaskBoardTaskFormat
    • getChecklistItemCount

      @Nullable public Integer getChecklistItemCount()
      Gets the checklistItemCount property value. Number of checklist items that are present on the task.
      Returns:
      a Integer
    • getCompletedBy

      @Nullable public IdentitySet getCompletedBy()
      Gets the completedBy property value. Identity of the user that completed the task.
      Returns:
      a IdentitySet
    • getCompletedDateTime

      @Nullable public OffsetDateTime getCompletedDateTime()
      Gets the completedDateTime property value. Read-only. Date and time at which the 'percentComplete' of the task is set to '100'. 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
    • getConversationThreadId

      @Nullable public String getConversationThreadId()
      Gets the conversationThreadId property value. Thread ID of the conversation on the task. This is the ID of the conversation thread object created in the group.
      Returns:
      a String
    • getCreatedBy

      @Nullable public IdentitySet getCreatedBy()
      Gets the createdBy property value. Identity of the user that created the task.
      Returns:
      a IdentitySet
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Read-only. Date and time at which the task is 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
    • getDetails

      @Nullable public PlannerTaskDetails getDetails()
      Gets the details property value. Read-only. Nullable. More details about the task.
      Returns:
      a PlannerTaskDetails
    • getDueDateTime

      @Nullable public OffsetDateTime getDueDateTime()
      Gets the dueDateTime property value. Date and time at which the task 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
    • 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>>
    • getHasDescription

      @Nullable public Boolean getHasDescription()
      Gets the hasDescription property value. Read-only. Value is true if the details object of the task has a nonempty description and false otherwise.
      Returns:
      a Boolean
    • getOrderHint

      @Nullable public String getOrderHint()
      Gets the orderHint property value. Hint used to order items of this type in a list view. The format is defined as outlined here.
      Returns:
      a String
    • getPercentComplete

      @Nullable public Integer getPercentComplete()
      Gets the percentComplete property value. Percentage of task completion. When set to 100, the task is considered completed.
      Returns:
      a Integer
    • getPlanId

      @Nullable public String getPlanId()
      Gets the planId property value. Plan ID to which the task belongs.
      Returns:
      a String
    • getPreviewType

      @Nullable public PlannerPreviewType getPreviewType()
      Gets the previewType property value. This sets the type of preview that shows up on the task. The possible values are: automatic, noPreview, checklist, description, reference.
      Returns:
      a PlannerPreviewType
    • getPriority

      @Nullable public Integer getPriority()
      Gets the priority property value. Priority of the task. The valid range of values is between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2, 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Additionally, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'.
      Returns:
      a Integer
    • getProgressTaskBoardFormat

      @Nullable public PlannerProgressTaskBoardTaskFormat getProgressTaskBoardFormat()
      Gets the progressTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress.
      Returns:
      a PlannerProgressTaskBoardTaskFormat
    • getReferenceCount

      @Nullable public Integer getReferenceCount()
      Gets the referenceCount property value. Number of external references that exist on the task.
      Returns:
      a Integer
    • getStartDateTime

      @Nullable public OffsetDateTime getStartDateTime()
      Gets the startDateTime property value. Date and time at which the task starts. 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
    • getTitle

      @Nullable public String getTitle()
      Gets the title property value. Title 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
    • setActiveChecklistItemCount

      public void setActiveChecklistItemCount(@Nullable Integer value)
      Sets the activeChecklistItemCount property value. Number of checklist items with value set to false, representing incomplete items.
      Parameters:
      value - Value to set for the activeChecklistItemCount property.
    • setAppliedCategories

      public void setAppliedCategories(@Nullable PlannerAppliedCategories value)
      Sets the appliedCategories property value. The categories to which the task has been applied. See applied Categories for possible values.
      Parameters:
      value - Value to set for the appliedCategories property.
    • setAssignedToTaskBoardFormat

      public void setAssignedToTaskBoardFormat(@Nullable PlannerAssignedToTaskBoardTaskFormat value)
      Sets the assignedToTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo.
      Parameters:
      value - Value to set for the assignedToTaskBoardFormat property.
    • setAssigneePriority

      public void setAssigneePriority(@Nullable String value)
      Sets the assigneePriority property value. Hint used to order items of this type in a list view. The format is defined as outlined here.
      Parameters:
      value - Value to set for the assigneePriority property.
    • setAssignments

      public void setAssignments(@Nullable PlannerAssignments value)
      Sets the assignments property value. The set of assignees the task is assigned to.
      Parameters:
      value - Value to set for the assignments property.
    • setBucketId

      public void setBucketId(@Nullable String value)
      Sets the bucketId property value. Bucket ID to which the task belongs. The bucket needs to be in the plan that the task is in. It's 28 characters long and case-sensitive. Format validation is done on the service.
      Parameters:
      value - Value to set for the bucketId property.
    • setBucketTaskBoardFormat

      public void setBucketTaskBoardFormat(@Nullable PlannerBucketTaskBoardTaskFormat value)
      Sets the bucketTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket.
      Parameters:
      value - Value to set for the bucketTaskBoardFormat property.
    • setChecklistItemCount

      public void setChecklistItemCount(@Nullable Integer value)
      Sets the checklistItemCount property value. Number of checklist items that are present on the task.
      Parameters:
      value - Value to set for the checklistItemCount property.
    • setCompletedBy

      public void setCompletedBy(@Nullable IdentitySet value)
      Sets the completedBy property value. Identity of the user that completed the task.
      Parameters:
      value - Value to set for the completedBy property.
    • setCompletedDateTime

      public void setCompletedDateTime(@Nullable OffsetDateTime value)
      Sets the completedDateTime property value. Read-only. Date and time at which the 'percentComplete' of the task is set to '100'. 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 completedDateTime property.
    • setConversationThreadId

      public void setConversationThreadId(@Nullable String value)
      Sets the conversationThreadId property value. Thread ID of the conversation on the task. This is the ID of the conversation thread object created in the group.
      Parameters:
      value - Value to set for the conversationThreadId property.
    • setCreatedBy

      public void setCreatedBy(@Nullable IdentitySet value)
      Sets the createdBy property value. Identity of the user that created the task.
      Parameters:
      value - Value to set for the createdBy property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. Read-only. Date and time at which the task is 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.
    • setDetails

      public void setDetails(@Nullable PlannerTaskDetails value)
      Sets the details property value. Read-only. Nullable. More details about the task.
      Parameters:
      value - Value to set for the details property.
    • setDueDateTime

      public void setDueDateTime(@Nullable OffsetDateTime value)
      Sets the dueDateTime property value. Date and time at which the task 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.
    • setHasDescription

      public void setHasDescription(@Nullable Boolean value)
      Sets the hasDescription property value. Read-only. Value is true if the details object of the task has a nonempty description and false otherwise.
      Parameters:
      value - Value to set for the hasDescription property.
    • setOrderHint

      public void setOrderHint(@Nullable String value)
      Sets the orderHint property value. Hint used to order items of this type in a list view. The format is defined as outlined here.
      Parameters:
      value - Value to set for the orderHint property.
    • setPercentComplete

      public void setPercentComplete(@Nullable Integer value)
      Sets the percentComplete property value. Percentage of task completion. When set to 100, the task is considered completed.
      Parameters:
      value - Value to set for the percentComplete property.
    • setPlanId

      public void setPlanId(@Nullable String value)
      Sets the planId property value. Plan ID to which the task belongs.
      Parameters:
      value - Value to set for the planId property.
    • setPreviewType

      public void setPreviewType(@Nullable PlannerPreviewType value)
      Sets the previewType property value. This sets the type of preview that shows up on the task. The possible values are: automatic, noPreview, checklist, description, reference.
      Parameters:
      value - Value to set for the previewType property.
    • setPriority

      public void setPriority(@Nullable Integer value)
      Sets the priority property value. Priority of the task. The valid range of values is between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2, 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Additionally, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'.
      Parameters:
      value - Value to set for the priority property.
    • setProgressTaskBoardFormat

      public void setProgressTaskBoardFormat(@Nullable PlannerProgressTaskBoardTaskFormat value)
      Sets the progressTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress.
      Parameters:
      value - Value to set for the progressTaskBoardFormat property.
    • setReferenceCount

      public void setReferenceCount(@Nullable Integer value)
      Sets the referenceCount property value. Number of external references that exist on the task.
      Parameters:
      value - Value to set for the referenceCount property.
    • setStartDateTime

      public void setStartDateTime(@Nullable OffsetDateTime value)
      Sets the startDateTime property value. Date and time at which the task starts. 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 startDateTime property.
    • setTitle

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