com.microsoft.graph.beta.generated.models.OutlookTask Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class OutlookTask extends OutlookItem implements Parsable {
/**
* Instantiates a new {@link OutlookTask} and sets the default values.
*/
public OutlookTask() {
super();
this.setOdataType("#microsoft.graph.outlookTask");
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link OutlookTask}
*/
@jakarta.annotation.Nonnull
public static OutlookTask createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new OutlookTask();
}
/**
* Gets the assignedTo property value. The name of the person who has been assigned the task in Outlook. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAssignedTo() {
return this.backingStore.get("assignedTo");
}
/**
* Gets the attachments property value. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAttachments() {
return this.backingStore.get("attachments");
}
/**
* Gets the body property value. The task body that typically contains information about the task. Only the HTML type is supported.
* @return a {@link ItemBody}
*/
@jakarta.annotation.Nullable
public ItemBody getBody() {
return this.backingStore.get("body");
}
/**
* Gets the completedDateTime property value. The date in the specified time zone that the task was finished.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getCompletedDateTime() {
return this.backingStore.get("completedDateTime");
}
/**
* Gets the dueDateTime property value. The date in the specified time zone that the task is to be finished.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getDueDateTime() {
return this.backingStore.get("dueDateTime");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("assignedTo", (n) -> { this.setAssignedTo(n.getStringValue()); });
deserializerMap.put("attachments", (n) -> { this.setAttachments(n.getCollectionOfObjectValues(Attachment::createFromDiscriminatorValue)); });
deserializerMap.put("body", (n) -> { this.setBody(n.getObjectValue(ItemBody::createFromDiscriminatorValue)); });
deserializerMap.put("completedDateTime", (n) -> { this.setCompletedDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
deserializerMap.put("dueDateTime", (n) -> { this.setDueDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
deserializerMap.put("hasAttachments", (n) -> { this.setHasAttachments(n.getBooleanValue()); });
deserializerMap.put("importance", (n) -> { this.setImportance(n.getEnumValue(Importance::forValue)); });
deserializerMap.put("isReminderOn", (n) -> { this.setIsReminderOn(n.getBooleanValue()); });
deserializerMap.put("multiValueExtendedProperties", (n) -> { this.setMultiValueExtendedProperties(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty::createFromDiscriminatorValue)); });
deserializerMap.put("owner", (n) -> { this.setOwner(n.getStringValue()); });
deserializerMap.put("parentFolderId", (n) -> { this.setParentFolderId(n.getStringValue()); });
deserializerMap.put("recurrence", (n) -> { this.setRecurrence(n.getObjectValue(PatternedRecurrence::createFromDiscriminatorValue)); });
deserializerMap.put("reminderDateTime", (n) -> { this.setReminderDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
deserializerMap.put("sensitivity", (n) -> { this.setSensitivity(n.getEnumValue(Sensitivity::forValue)); });
deserializerMap.put("singleValueExtendedProperties", (n) -> { this.setSingleValueExtendedProperties(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty::createFromDiscriminatorValue)); });
deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(TaskStatus::forValue)); });
deserializerMap.put("subject", (n) -> { this.setSubject(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the hasAttachments property value. Set to true if the task has attachments.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getHasAttachments() {
return this.backingStore.get("hasAttachments");
}
/**
* Gets the importance property value. The importance of the event. Possible values are: low, normal, high.
* @return a {@link Importance}
*/
@jakarta.annotation.Nullable
public Importance getImportance() {
return this.backingStore.get("importance");
}
/**
* Gets the isReminderOn property value. Set to true if an alert is set to remind the user of the task.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsReminderOn() {
return this.backingStore.get("isReminderOn");
}
/**
* Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the task. Read-only. Nullable.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getMultiValueExtendedProperties() {
return this.backingStore.get("multiValueExtendedProperties");
}
/**
* Gets the owner property value. The name of the person who created the task.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOwner() {
return this.backingStore.get("owner");
}
/**
* Gets the parentFolderId property value. The unique identifier for the task's parent folder.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getParentFolderId() {
return this.backingStore.get("parentFolderId");
}
/**
* Gets the recurrence property value. The recurrence pattern for the task.
* @return a {@link PatternedRecurrence}
*/
@jakarta.annotation.Nullable
public PatternedRecurrence getRecurrence() {
return this.backingStore.get("recurrence");
}
/**
* Gets the reminderDateTime property value. The date and time for a reminder alert of the task to occur.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getReminderDateTime() {
return this.backingStore.get("reminderDateTime");
}
/**
* Gets the sensitivity property value. Indicates the level of privacy for the task. Possible values are: normal, personal, private, confidential.
* @return a {@link Sensitivity}
*/
@jakarta.annotation.Nullable
public Sensitivity getSensitivity() {
return this.backingStore.get("sensitivity");
}
/**
* Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the task. Read-only. Nullable.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSingleValueExtendedProperties() {
return this.backingStore.get("singleValueExtendedProperties");
}
/**
* Gets the startDateTime property value. The date in the specified time zone when the task is to begin.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getStartDateTime() {
return this.backingStore.get("startDateTime");
}
/**
* Gets the status property value. Indicates the state or progress of the task. Possible values are: notStarted, inProgress, completed, waitingOnOthers, deferred.
* @return a {@link TaskStatus}
*/
@jakarta.annotation.Nullable
public TaskStatus getStatus() {
return this.backingStore.get("status");
}
/**
* Gets the subject property value. A brief description or title of the task.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSubject() {
return this.backingStore.get("subject");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeStringValue("assignedTo", this.getAssignedTo());
writer.writeCollectionOfObjectValues("attachments", this.getAttachments());
writer.writeObjectValue("body", this.getBody());
writer.writeObjectValue("completedDateTime", this.getCompletedDateTime());
writer.writeObjectValue("dueDateTime", this.getDueDateTime());
writer.writeBooleanValue("hasAttachments", this.getHasAttachments());
writer.writeEnumValue("importance", this.getImportance());
writer.writeBooleanValue("isReminderOn", this.getIsReminderOn());
writer.writeCollectionOfObjectValues("multiValueExtendedProperties", this.getMultiValueExtendedProperties());
writer.writeStringValue("owner", this.getOwner());
writer.writeStringValue("parentFolderId", this.getParentFolderId());
writer.writeObjectValue("recurrence", this.getRecurrence());
writer.writeObjectValue("reminderDateTime", this.getReminderDateTime());
writer.writeEnumValue("sensitivity", this.getSensitivity());
writer.writeCollectionOfObjectValues("singleValueExtendedProperties", this.getSingleValueExtendedProperties());
writer.writeObjectValue("startDateTime", this.getStartDateTime());
writer.writeEnumValue("status", this.getStatus());
writer.writeStringValue("subject", this.getSubject());
}
/**
* Sets the assignedTo property value. The name of the person who has been assigned the task in Outlook. Read-only.
* @param value Value to set for the assignedTo property.
*/
public void setAssignedTo(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("assignedTo", value);
}
/**
* Sets the attachments property value. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable.
* @param value Value to set for the attachments property.
*/
public void setAttachments(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("attachments", value);
}
/**
* Sets the body property value. The task body that typically contains information about the task. Only the HTML type is supported.
* @param value Value to set for the body property.
*/
public void setBody(@jakarta.annotation.Nullable final ItemBody value) {
this.backingStore.set("body", value);
}
/**
* Sets the completedDateTime property value. The date in the specified time zone that the task was finished.
* @param value Value to set for the completedDateTime property.
*/
public void setCompletedDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("completedDateTime", value);
}
/**
* Sets the dueDateTime property value. The date in the specified time zone that the task is to be finished.
* @param value Value to set for the dueDateTime property.
*/
public void setDueDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("dueDateTime", value);
}
/**
* Sets the hasAttachments property value. Set to true if the task has attachments.
* @param value Value to set for the hasAttachments property.
*/
public void setHasAttachments(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("hasAttachments", value);
}
/**
* Sets the importance property value. The importance of the event. Possible values are: low, normal, high.
* @param value Value to set for the importance property.
*/
public void setImportance(@jakarta.annotation.Nullable final Importance value) {
this.backingStore.set("importance", value);
}
/**
* Sets the isReminderOn property value. Set to true if an alert is set to remind the user of the task.
* @param value Value to set for the isReminderOn property.
*/
public void setIsReminderOn(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isReminderOn", value);
}
/**
* Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the task. Read-only. Nullable.
* @param value Value to set for the multiValueExtendedProperties property.
*/
public void setMultiValueExtendedProperties(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("multiValueExtendedProperties", value);
}
/**
* Sets the owner property value. The name of the person who created the task.
* @param value Value to set for the owner property.
*/
public void setOwner(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("owner", value);
}
/**
* Sets the parentFolderId property value. The unique identifier for the task's parent folder.
* @param value Value to set for the parentFolderId property.
*/
public void setParentFolderId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("parentFolderId", value);
}
/**
* Sets the recurrence property value. The recurrence pattern for the task.
* @param value Value to set for the recurrence property.
*/
public void setRecurrence(@jakarta.annotation.Nullable final PatternedRecurrence value) {
this.backingStore.set("recurrence", value);
}
/**
* Sets the reminderDateTime property value. The date and time for a reminder alert of the task to occur.
* @param value Value to set for the reminderDateTime property.
*/
public void setReminderDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("reminderDateTime", value);
}
/**
* Sets the sensitivity property value. Indicates the level of privacy for the task. Possible values are: normal, personal, private, confidential.
* @param value Value to set for the sensitivity property.
*/
public void setSensitivity(@jakarta.annotation.Nullable final Sensitivity value) {
this.backingStore.set("sensitivity", value);
}
/**
* Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the task. Read-only. Nullable.
* @param value Value to set for the singleValueExtendedProperties property.
*/
public void setSingleValueExtendedProperties(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("singleValueExtendedProperties", value);
}
/**
* Sets the startDateTime property value. The date in the specified time zone when the task is to begin.
* @param value Value to set for the startDateTime property.
*/
public void setStartDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("startDateTime", value);
}
/**
* Sets the status property value. Indicates the state or progress of the task. Possible values are: notStarted, inProgress, completed, waitingOnOthers, deferred.
* @param value Value to set for the status property.
*/
public void setStatus(@jakarta.annotation.Nullable final TaskStatus value) {
this.backingStore.set("status", value);
}
/**
* Sets the subject property value. A brief description or title of the task.
* @param value Value to set for the subject property.
*/
public void setSubject(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("subject", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy