/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/todo_task.go
851 строка
32 KB
Justin Pierce
Add compat_otp package with openshift-tests-private (OTP) util implementations
11 авг 2025, 18:00
11 авг 2025, 18:00
80ac5c1
Код
Авторство
О чём код?
// Code generated by Microsoft Kiota - DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package models import ( i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) type TodoTask struct { Entity } // NewTodoTask instantiates a new TodoTask and sets the default values. func NewTodoTask()(*TodoTask) { m := &TodoTask{ Entity: *NewEntity(), } return m } // CreateTodoTaskFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateTodoTaskFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewTodoTask(), nil } // GetAttachments gets the attachments property value. A collection of file attachments for the task. // returns a []AttachmentBaseable when successful func (m *TodoTask) GetAttachments()([]AttachmentBaseable) { val, err := m.GetBackingStore().Get("attachments") if err != nil { panic(err) } if val != nil { return val.([]AttachmentBaseable) } return nil } // GetAttachmentSessions gets the attachmentSessions property value. The attachmentSessions property // returns a []AttachmentSessionable when successful func (m *TodoTask) GetAttachmentSessions()([]AttachmentSessionable) { val, err := m.GetBackingStore().Get("attachmentSessions") if err != nil { panic(err) } if val != nil { return val.([]AttachmentSessionable) } return nil } // GetBody gets the body property value. The task body that typically contains information about the task. // returns a ItemBodyable when successful func (m *TodoTask) GetBody()(ItemBodyable) { val, err := m.GetBackingStore().Get("body") if err != nil { panic(err) } if val != nil { return val.(ItemBodyable) } return nil } // 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 *Time when successful func (m *TodoTask) GetBodyLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("bodyLastModifiedDateTime") if err != nil { panic(err) } if val != nil { return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) } return nil } // 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 []string when successful func (m *TodoTask) GetCategories()([]string) { val, err := m.GetBackingStore().Get("categories") if err != nil { panic(err) } if val != nil { return val.([]string) } return nil } // GetChecklistItems gets the checklistItems property value. A collection of checklistItems linked to a task. // returns a []ChecklistItemable when successful func (m *TodoTask) GetChecklistItems()([]ChecklistItemable) { val, err := m.GetBackingStore().Get("checklistItems") if err != nil { panic(err) } if val != nil { return val.([]ChecklistItemable) } return nil } // GetCompletedDateTime gets the completedDateTime property value. The date and time in the specified time zone that the task was finished. // returns a DateTimeTimeZoneable when successful func (m *TodoTask) GetCompletedDateTime()(DateTimeTimeZoneable) { val, err := m.GetBackingStore().Get("completedDateTime") if err != nil { panic(err) } if val != nil { return val.(DateTimeTimeZoneable) } return nil } // 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 *Time when successful func (m *TodoTask) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") if err != nil { panic(err) } if val != nil { return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) } return nil } // GetDueDateTime gets the dueDateTime property value. The date and time in the specified time zone that the task is to be finished. // returns a DateTimeTimeZoneable when successful func (m *TodoTask) GetDueDateTime()(DateTimeTimeZoneable) { val, err := m.GetBackingStore().Get("dueDateTime") if err != nil { panic(err) } if val != nil { return val.(DateTimeTimeZoneable) } return nil } // GetExtensions gets the extensions property value. The collection of open extensions defined for the task. Nullable. // returns a []Extensionable when successful func (m *TodoTask) GetExtensions()([]Extensionable) { val, err := m.GetBackingStore().Get("extensions") if err != nil { panic(err) } if val != nil { return val.([]Extensionable) } return nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *TodoTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["attachments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateAttachmentBaseFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]AttachmentBaseable, len(val)) for i, v := range val { if v != nil { res[i] = v.(AttachmentBaseable) } } m.SetAttachments(res) } return nil } res["attachmentSessions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateAttachmentSessionFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]AttachmentSessionable, len(val)) for i, v := range val { if v != nil { res[i] = v.(AttachmentSessionable) } } m.SetAttachmentSessions(res) } return nil } res["body"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetBody(val.(ItemBodyable)) } return nil } res["bodyLastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { return err } if val != nil { m.SetBodyLastModifiedDateTime(val) } return nil } res["categories"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { return err } if val != nil { res := make([]string, len(val)) for i, v := range val { if v != nil { res[i] = *(v.(*string)) } } m.SetCategories(res) } return nil } res["checklistItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateChecklistItemFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]ChecklistItemable, len(val)) for i, v := range val { if v != nil { res[i] = v.(ChecklistItemable) } } m.SetChecklistItems(res) } return nil } res["completedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDateTimeTimeZoneFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetCompletedDateTime(val.(DateTimeTimeZoneable)) } return nil } res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { return err } if val != nil { m.SetCreatedDateTime(val) } return nil } res["dueDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDateTimeTimeZoneFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetDueDateTime(val.(DateTimeTimeZoneable)) } return nil } res["extensions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateExtensionFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]Extensionable, len(val)) for i, v := range val { if v != nil { res[i] = v.(Extensionable) } } m.SetExtensions(res) } return nil } res["hasAttachments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetHasAttachments(val) } return nil } res["importance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseImportance) if err != nil { return err } if val != nil { m.SetImportance(val.(*Importance)) } return nil } res["isReminderOn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetIsReminderOn(val) } return nil } res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { return err } if val != nil { m.SetLastModifiedDateTime(val) } return nil } res["linkedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateLinkedResourceFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]LinkedResourceable, len(val)) for i, v := range val { if v != nil { res[i] = v.(LinkedResourceable) } } m.SetLinkedResources(res) } return nil } res["recurrence"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreatePatternedRecurrenceFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetRecurrence(val.(PatternedRecurrenceable)) } return nil } res["reminderDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDateTimeTimeZoneFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetReminderDateTime(val.(DateTimeTimeZoneable)) } return nil } res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDateTimeTimeZoneFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetStartDateTime(val.(DateTimeTimeZoneable)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseTaskStatus) if err != nil { return err } if val != nil { m.SetStatus(val.(*TaskStatus)) } return nil } res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetTitle(val) } return nil } return res } // GetHasAttachments gets the hasAttachments property value. Indicates whether the task has attachments. // returns a *bool when successful func (m *TodoTask) GetHasAttachments()(*bool) { val, err := m.GetBackingStore().Get("hasAttachments") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetImportance gets the importance property value. The importance property // returns a *Importance when successful func (m *TodoTask) GetImportance()(*Importance) { val, err := m.GetBackingStore().Get("importance") if err != nil { panic(err) } if val != nil { return val.(*Importance) } return nil } // GetIsReminderOn gets the isReminderOn property value. Set to true if an alert is set to remind the user of the task. // returns a *bool when successful func (m *TodoTask) GetIsReminderOn()(*bool) { val, err := m.GetBackingStore().Get("isReminderOn") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // 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 *Time when successful func (m *TodoTask) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") if err != nil { panic(err) } if val != nil { return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) } return nil } // GetLinkedResources gets the linkedResources property value. A collection of resources linked to the task. // returns a []LinkedResourceable when successful func (m *TodoTask) GetLinkedResources()([]LinkedResourceable) { val, err := m.GetBackingStore().Get("linkedResources") if err != nil { panic(err) } if val != nil { return val.([]LinkedResourceable) } return nil } // GetRecurrence gets the recurrence property value. The recurrence pattern for the task. // returns a PatternedRecurrenceable when successful func (m *TodoTask) GetRecurrence()(PatternedRecurrenceable) { val, err := m.GetBackingStore().Get("recurrence") if err != nil { panic(err) } if val != nil { return val.(PatternedRecurrenceable) } return nil } // 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 DateTimeTimeZoneable when successful func (m *TodoTask) GetReminderDateTime()(DateTimeTimeZoneable) { val, err := m.GetBackingStore().Get("reminderDateTime") if err != nil { panic(err) } if val != nil { return val.(DateTimeTimeZoneable) } return nil } // 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 DateTimeTimeZoneable when successful func (m *TodoTask) GetStartDateTime()(DateTimeTimeZoneable) { val, err := m.GetBackingStore().Get("startDateTime") if err != nil { panic(err) } if val != nil { return val.(DateTimeTimeZoneable) } return nil } // GetStatus gets the status property value. The status property // returns a *TaskStatus when successful func (m *TodoTask) GetStatus()(*TaskStatus) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { return val.(*TaskStatus) } return nil } // GetTitle gets the title property value. A brief description of the task. // returns a *string when successful func (m *TodoTask) GetTitle()(*string) { val, err := m.GetBackingStore().Get("title") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // Serialize serializes information the current object func (m *TodoTask) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) if err != nil { return err } if m.GetAttachments() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAttachments())) for i, v := range m.GetAttachments() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("attachments", cast) if err != nil { return err } } if m.GetAttachmentSessions() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAttachmentSessions())) for i, v := range m.GetAttachmentSessions() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("attachmentSessions", cast) if err != nil { return err } } { err = writer.WriteObjectValue("body", m.GetBody()) if err != nil { return err } } { err = writer.WriteTimeValue("bodyLastModifiedDateTime", m.GetBodyLastModifiedDateTime()) if err != nil { return err } } if m.GetCategories() != nil { err = writer.WriteCollectionOfStringValues("categories", m.GetCategories()) if err != nil { return err } } if m.GetChecklistItems() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetChecklistItems())) for i, v := range m.GetChecklistItems() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("checklistItems", cast) if err != nil { return err } } { err = writer.WriteObjectValue("completedDateTime", m.GetCompletedDateTime()) if err != nil { return err } } { err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) if err != nil { return err } } { err = writer.WriteObjectValue("dueDateTime", m.GetDueDateTime()) if err != nil { return err } } if m.GetExtensions() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetExtensions())) for i, v := range m.GetExtensions() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("extensions", cast) if err != nil { return err } } { err = writer.WriteBoolValue("hasAttachments", m.GetHasAttachments()) if err != nil { return err } } if m.GetImportance() != nil { cast := (*m.GetImportance()).String() err = writer.WriteStringValue("importance", &cast) if err != nil { return err } } { err = writer.WriteBoolValue("isReminderOn", m.GetIsReminderOn()) if err != nil { return err } } { err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) if err != nil { return err } } if m.GetLinkedResources() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetLinkedResources())) for i, v := range m.GetLinkedResources() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("linkedResources", cast) if err != nil { return err } } { err = writer.WriteObjectValue("recurrence", m.GetRecurrence()) if err != nil { return err } } { err = writer.WriteObjectValue("reminderDateTime", m.GetReminderDateTime()) if err != nil { return err } } { err = writer.WriteObjectValue("startDateTime", m.GetStartDateTime()) if err != nil { return err } } if m.GetStatus() != nil { cast := (*m.GetStatus()).String() err = writer.WriteStringValue("status", &cast) if err != nil { return err } } { err = writer.WriteStringValue("title", m.GetTitle()) if err != nil { return err } } return nil } // SetAttachments sets the attachments property value. A collection of file attachments for the task. func (m *TodoTask) SetAttachments(value []AttachmentBaseable)() { err := m.GetBackingStore().Set("attachments", value) if err != nil { panic(err) } } // SetAttachmentSessions sets the attachmentSessions property value. The attachmentSessions property func (m *TodoTask) SetAttachmentSessions(value []AttachmentSessionable)() { err := m.GetBackingStore().Set("attachmentSessions", value) if err != nil { panic(err) } } // SetBody sets the body property value. The task body that typically contains information about the task. func (m *TodoTask) SetBody(value ItemBodyable)() { err := m.GetBackingStore().Set("body", value) if err != nil { panic(err) } } // SetBodyLastModifiedDateTime 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'. func (m *TodoTask) SetBodyLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("bodyLastModifiedDateTime", value) if err != nil { panic(err) } } // SetCategories 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. func (m *TodoTask) SetCategories(value []string)() { err := m.GetBackingStore().Set("categories", value) if err != nil { panic(err) } } // SetChecklistItems sets the checklistItems property value. A collection of checklistItems linked to a task. func (m *TodoTask) SetChecklistItems(value []ChecklistItemable)() { err := m.GetBackingStore().Set("checklistItems", value) if err != nil { panic(err) } } // SetCompletedDateTime sets the completedDateTime property value. The date and time in the specified time zone that the task was finished. func (m *TodoTask) SetCompletedDateTime(value DateTimeTimeZoneable)() { err := m.GetBackingStore().Set("completedDateTime", value) if err != nil { panic(err) } } // SetCreatedDateTime 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'. func (m *TodoTask) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } // SetDueDateTime sets the dueDateTime property value. The date and time in the specified time zone that the task is to be finished. func (m *TodoTask) SetDueDateTime(value DateTimeTimeZoneable)() { err := m.GetBackingStore().Set("dueDateTime", value) if err != nil { panic(err) } } // SetExtensions sets the extensions property value. The collection of open extensions defined for the task. Nullable. func (m *TodoTask) SetExtensions(value []Extensionable)() { err := m.GetBackingStore().Set("extensions", value) if err != nil { panic(err) } } // SetHasAttachments sets the hasAttachments property value. Indicates whether the task has attachments. func (m *TodoTask) SetHasAttachments(value *bool)() { err := m.GetBackingStore().Set("hasAttachments", value) if err != nil { panic(err) } } // SetImportance sets the importance property value. The importance property func (m *TodoTask) SetImportance(value *Importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) } } // SetIsReminderOn sets the isReminderOn property value. Set to true if an alert is set to remind the user of the task. func (m *TodoTask) SetIsReminderOn(value *bool)() { err := m.GetBackingStore().Set("isReminderOn", value) if err != nil { panic(err) } } // SetLastModifiedDateTime 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'. func (m *TodoTask) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } // SetLinkedResources sets the linkedResources property value. A collection of resources linked to the task. func (m *TodoTask) SetLinkedResources(value []LinkedResourceable)() { err := m.GetBackingStore().Set("linkedResources", value) if err != nil { panic(err) } } // SetRecurrence sets the recurrence property value. The recurrence pattern for the task. func (m *TodoTask) SetRecurrence(value PatternedRecurrenceable)() { err := m.GetBackingStore().Set("recurrence", value) if err != nil { panic(err) } } // SetReminderDateTime sets the reminderDateTime property value. The date and time in the specified time zone for a reminder alert of the task to occur. func (m *TodoTask) SetReminderDateTime(value DateTimeTimeZoneable)() { err := m.GetBackingStore().Set("reminderDateTime", value) if err != nil { panic(err) } } // SetStartDateTime sets the startDateTime property value. The date and time in the specified time zone at which the task is scheduled to start. func (m *TodoTask) SetStartDateTime(value DateTimeTimeZoneable)() { err := m.GetBackingStore().Set("startDateTime", value) if err != nil { panic(err) } } // SetStatus sets the status property value. The status property func (m *TodoTask) SetStatus(value *TaskStatus)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) } } // SetTitle sets the title property value. A brief description of the task. func (m *TodoTask) SetTitle(value *string)() { err := m.GetBackingStore().Set("title", value) if err != nil { panic(err) } } type TodoTaskable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAttachments()([]AttachmentBaseable) GetAttachmentSessions()([]AttachmentSessionable) GetBody()(ItemBodyable) GetBodyLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCategories()([]string) GetChecklistItems()([]ChecklistItemable) GetCompletedDateTime()(DateTimeTimeZoneable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDueDateTime()(DateTimeTimeZoneable) GetExtensions()([]Extensionable) GetHasAttachments()(*bool) GetImportance()(*Importance) GetIsReminderOn()(*bool) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLinkedResources()([]LinkedResourceable) GetRecurrence()(PatternedRecurrenceable) GetReminderDateTime()(DateTimeTimeZoneable) GetStartDateTime()(DateTimeTimeZoneable) GetStatus()(*TaskStatus) GetTitle()(*string) SetAttachments(value []AttachmentBaseable)() SetAttachmentSessions(value []AttachmentSessionable)() SetBody(value ItemBodyable)() SetBodyLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCategories(value []string)() SetChecklistItems(value []ChecklistItemable)() SetCompletedDateTime(value DateTimeTimeZoneable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDueDateTime(value DateTimeTimeZoneable)() SetExtensions(value []Extensionable)() SetHasAttachments(value *bool)() SetImportance(value *Importance)() SetIsReminderOn(value *bool)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLinkedResources(value []LinkedResourceable)() SetRecurrence(value PatternedRecurrenceable)() SetReminderDateTime(value DateTimeTimeZoneable)() SetStartDateTime(value DateTimeTimeZoneable)() SetStatus(value *TaskStatus)() SetTitle(value *string)() }