Class TodoTask
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.TodoTask
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class TodoTask extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTodoTask.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<AttachmentBase>attachmentsprotected List<AttachmentSession>attachmentSessionsprotected ItemBodybodyprotected OffsetDateTimebodyLastModifiedDateTimeprotected List<String>categoriesprotected StringcategoriesNextLinkprotected List<ChecklistItem>checklistItemsprotected DateTimeTimeZonecompletedDateTimeprotected OffsetDateTimecreatedDateTimeprotected DateTimeTimeZonedueDateTimeprotected List<Extension>extensionsprotected BooleanhasAttachmentsprotected Importanceimportanceprotected BooleanisReminderOnprotected OffsetDateTimelastModifiedDateTimeprotected List<LinkedResource>linkedResourcesprotected PatternedRecurrencerecurrenceprotected DateTimeTimeZonereminderDateTimeprotected DateTimeTimeZonestartDateTimeprotected TaskStatusstatusprotected Stringtitle-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTodoTask()
-
Method Summary
-
-
-
Field Detail
-
body
protected ItemBody body
-
bodyLastModifiedDateTime
protected OffsetDateTime bodyLastModifiedDateTime
-
categoriesNextLink
protected String categoriesNextLink
-
completedDateTime
protected DateTimeTimeZone completedDateTime
-
createdDateTime
protected OffsetDateTime createdDateTime
-
dueDateTime
protected DateTimeTimeZone dueDateTime
-
hasAttachments
protected Boolean hasAttachments
-
importance
protected Importance importance
-
isReminderOn
protected Boolean isReminderOn
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
recurrence
protected PatternedRecurrence recurrence
-
reminderDateTime
protected DateTimeTimeZone reminderDateTime
-
startDateTime
protected DateTimeTimeZone startDateTime
-
status
protected TaskStatus status
-
title
protected String title
-
attachments
protected List<AttachmentBase> attachments
-
attachmentSessions
protected List<AttachmentSession> attachmentSessions
-
checklistItems
protected List<ChecklistItem> checklistItems
-
linkedResources
protected List<LinkedResource> linkedResources
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderTodoTask
public static TodoTask.Builder builderTodoTask()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getBodyLastModifiedDateTime
public Optional<OffsetDateTime> getBodyLastModifiedDateTime()
-
withBodyLastModifiedDateTime
public TodoTask withBodyLastModifiedDateTime(OffsetDateTime bodyLastModifiedDateTime)
-
getCategories
public com.github.davidmoten.odata.client.CollectionPage<String> getCategories()
-
getCategories
public com.github.davidmoten.odata.client.CollectionPage<String> getCategories(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getCompletedDateTime
public Optional<DateTimeTimeZone> getCompletedDateTime()
-
withCompletedDateTime
public TodoTask withCompletedDateTime(DateTimeTimeZone completedDateTime)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public TodoTask withCreatedDateTime(OffsetDateTime createdDateTime)
-
getDueDateTime
public Optional<DateTimeTimeZone> getDueDateTime()
-
withDueDateTime
public TodoTask withDueDateTime(DateTimeTimeZone dueDateTime)
-
getImportance
public Optional<Importance> getImportance()
-
withImportance
public TodoTask withImportance(Importance importance)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public TodoTask withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
getRecurrence
public Optional<PatternedRecurrence> getRecurrence()
-
withRecurrence
public TodoTask withRecurrence(PatternedRecurrence recurrence)
-
getReminderDateTime
public Optional<DateTimeTimeZone> getReminderDateTime()
-
withReminderDateTime
public TodoTask withReminderDateTime(DateTimeTimeZone reminderDateTime)
-
getStartDateTime
public Optional<DateTimeTimeZone> getStartDateTime()
-
withStartDateTime
public TodoTask withStartDateTime(DateTimeTimeZone startDateTime)
-
getStatus
public Optional<TaskStatus> getStatus()
-
withStatus
public TodoTask withStatus(TaskStatus status)
-
withUnmappedField
public TodoTask withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getAttachments
public AttachmentBaseCollectionRequest getAttachments()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Returns:
- navigational property attachments
-
getAttachmentSessions
public AttachmentSessionCollectionRequest getAttachmentSessions()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Returns:
- navigational property attachmentSessions
-
getChecklistItems
public ChecklistItemCollectionRequest getChecklistItems()
-
getExtensions
public ExtensionCollectionRequest getExtensions()
-
getLinkedResources
public LinkedResourceCollectionRequest getLinkedResources()
-
withAttachments
public TodoTask withAttachments(List<AttachmentBase> attachments)
Returns an immutable copy ofthiswith just theattachmentsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Parameters:
attachments- new value ofattachmentsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theattachmentsfield changed
-
withAttachmentSessions
public TodoTask withAttachmentSessions(List<AttachmentSession> attachmentSessions)
Returns an immutable copy ofthiswith just theattachmentSessionsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Parameters:
attachmentSessions- new value ofattachmentSessionsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theattachmentSessionsfield changed
-
withChecklistItems
public TodoTask withChecklistItems(List<ChecklistItem> checklistItems)
-
withLinkedResources
public TodoTask withLinkedResources(List<LinkedResource> linkedResources)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public TodoTask patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public TodoTask put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-