你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphTodoTask Class

public final class MicrosoftGraphTodoTask
extends MicrosoftGraphEntity

todoTask.

Constructor Summary

Constructor Description
MicrosoftGraphTodoTask()

Creates an instance of MicrosoftGraphTodoTask class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: todoTask.

MicrosoftGraphItemBody body()

Get the body property: itemBody.

OffsetDateTime bodyLastModifiedDateTime()

Get the bodyLastModifiedDateTime property: The date and time when the task was last modified.

MicrosoftGraphDateTimeZone completedDateTime()

Get the completedDateTime property: dateTimeTimeZone.

OffsetDateTime createdDateTime()

Get the createdDateTime property: The date and time when the task was created.

MicrosoftGraphDateTimeZone dueDateTime()

Get the dueDateTime property: dateTimeTimeZone.

List<MicrosoftGraphExtension> extensions()

Get the extensions property: The collection of open extensions defined for the task.

static MicrosoftGraphTodoTask fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTodoTask from the JsonReader.

MicrosoftGraphImportance importance()

Get the importance property: importance.

Boolean isReminderOn()

Get the isReminderOn property: Set to true if an alert is set to remind the user of the task.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date and time when the task was last modified.

List<MicrosoftGraphLinkedResource> linkedResources()

Get the linkedResources property: A collection of resources linked to the task.

MicrosoftGraphPatternedRecurrence recurrence()

Get the recurrence property: patternedRecurrence.

MicrosoftGraphDateTimeZone reminderDateTime()

Get the reminderDateTime property: dateTimeTimeZone.

MicrosoftGraphTaskStatus status()

Get the status property: taskStatus.

String title()

Get the title property: A brief description of the task.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphTodoTask withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: todoTask.

MicrosoftGraphTodoTask withBody(MicrosoftGraphItemBody body)

Set the body property: itemBody.

MicrosoftGraphTodoTask withBodyLastModifiedDateTime(OffsetDateTime bodyLastModifiedDateTime)

Set the bodyLastModifiedDateTime property: The date and time when the task was last modified.

MicrosoftGraphTodoTask withCompletedDateTime(MicrosoftGraphDateTimeZone completedDateTime)

Set the completedDateTime property: dateTimeTimeZone.

MicrosoftGraphTodoTask withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The date and time when the task was created.

MicrosoftGraphTodoTask withDueDateTime(MicrosoftGraphDateTimeZone dueDateTime)

Set the dueDateTime property: dateTimeTimeZone.

MicrosoftGraphTodoTask withExtensions(List<MicrosoftGraphExtension> extensions)

Set the extensions property: The collection of open extensions defined for the task.

MicrosoftGraphTodoTask withId(String id)

Set the id property: Read-only.

MicrosoftGraphTodoTask withImportance(MicrosoftGraphImportance importance)

Set the importance property: importance.

MicrosoftGraphTodoTask withIsReminderOn(Boolean isReminderOn)

Set the isReminderOn property: Set to true if an alert is set to remind the user of the task.

MicrosoftGraphTodoTask withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The date and time when the task was last modified.

MicrosoftGraphTodoTask withLinkedResources(List<MicrosoftGraphLinkedResource> linkedResources)

Set the linkedResources property: A collection of resources linked to the task.

MicrosoftGraphTodoTask withRecurrence(MicrosoftGraphPatternedRecurrence recurrence)

Set the recurrence property: patternedRecurrence.

MicrosoftGraphTodoTask withReminderDateTime(MicrosoftGraphDateTimeZone reminderDateTime)

Set the reminderDateTime property: dateTimeTimeZone.

MicrosoftGraphTodoTask withStatus(MicrosoftGraphTaskStatus status)

Set the status property: taskStatus.

MicrosoftGraphTodoTask withTitle(String title)

Set the title property: A brief description of the task.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTodoTask

public MicrosoftGraphTodoTask()

Creates an instance of MicrosoftGraphTodoTask class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: todoTask.

Overrides:

MicrosoftGraphTodoTask.additionalProperties()

Returns:

the additionalProperties value.

body

public MicrosoftGraphItemBody body()

Get the body property: itemBody.

Returns:

the body value.

bodyLastModifiedDateTime

public OffsetDateTime bodyLastModifiedDateTime()

Get the bodyLastModifiedDateTime property: 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:

the bodyLastModifiedDateTime value.

completedDateTime

public MicrosoftGraphDateTimeZone completedDateTime()

Get the completedDateTime property: dateTimeTimeZone.

Returns:

the completedDateTime value.

createdDateTime

public OffsetDateTime createdDateTime()

Get the createdDateTime property: 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:

the createdDateTime value.

dueDateTime

public MicrosoftGraphDateTimeZone dueDateTime()

Get the dueDateTime property: dateTimeTimeZone.

Returns:

the dueDateTime value.

extensions

public List extensions()

Get the extensions property: The collection of open extensions defined for the task. Nullable.

Returns:

the extensions value.

fromJson

public static MicrosoftGraphTodoTask fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTodoTask from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphTodoTask if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphTodoTask.

importance

public MicrosoftGraphImportance importance()

Get the importance property: importance.

Returns:

the importance value.

isReminderOn

public Boolean isReminderOn()

Get the isReminderOn property: Set to true if an alert is set to remind the user of the task.

Returns:

the isReminderOn value.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: 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:

the lastModifiedDateTime value.

linkedResources

public List linkedResources()

Get the linkedResources property: A collection of resources linked to the task.

Returns:

the linkedResources value.

recurrence

public MicrosoftGraphPatternedRecurrence recurrence()

Get the recurrence property: patternedRecurrence.

Returns:

the recurrence value.

reminderDateTime

public MicrosoftGraphDateTimeZone reminderDateTime()

Get the reminderDateTime property: dateTimeTimeZone.

Returns:

the reminderDateTime value.

status

public MicrosoftGraphTaskStatus status()

Get the status property: taskStatus.

Returns:

the status value.

title

public String title()

Get the title property: A brief description of the task.

Returns:

the title value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTodoTask.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTodoTask.validate()

withAdditionalProperties

public MicrosoftGraphTodoTask withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: todoTask.

Overrides:

MicrosoftGraphTodoTask.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withBody

public MicrosoftGraphTodoTask withBody(MicrosoftGraphItemBody body)

Set the body property: itemBody.

Parameters:

body - the body value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withBodyLastModifiedDateTime

public MicrosoftGraphTodoTask withBodyLastModifiedDateTime(OffsetDateTime bodyLastModifiedDateTime)

Set the bodyLastModifiedDateTime property: 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:

bodyLastModifiedDateTime - the bodyLastModifiedDateTime value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withCompletedDateTime

public MicrosoftGraphTodoTask withCompletedDateTime(MicrosoftGraphDateTimeZone completedDateTime)

Set the completedDateTime property: dateTimeTimeZone.

Parameters:

completedDateTime - the completedDateTime value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withCreatedDateTime

public MicrosoftGraphTodoTask withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: 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:

createdDateTime - the createdDateTime value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withDueDateTime

public MicrosoftGraphTodoTask withDueDateTime(MicrosoftGraphDateTimeZone dueDateTime)

Set the dueDateTime property: dateTimeTimeZone.

Parameters:

dueDateTime - the dueDateTime value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withExtensions

public MicrosoftGraphTodoTask withExtensions(List extensions)

Set the extensions property: The collection of open extensions defined for the task. Nullable.

Parameters:

extensions - the extensions value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withId

public MicrosoftGraphTodoTask withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphTodoTask.withId(String id)

Parameters:

id

withImportance

public MicrosoftGraphTodoTask withImportance(MicrosoftGraphImportance importance)

Set the importance property: importance.

Parameters:

importance - the importance value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withIsReminderOn

public MicrosoftGraphTodoTask withIsReminderOn(Boolean isReminderOn)

Set the isReminderOn property: Set to true if an alert is set to remind the user of the task.

Parameters:

isReminderOn - the isReminderOn value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withLastModifiedDateTime

public MicrosoftGraphTodoTask withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: 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:

lastModifiedDateTime - the lastModifiedDateTime value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withLinkedResources

public MicrosoftGraphTodoTask withLinkedResources(List linkedResources)

Set the linkedResources property: A collection of resources linked to the task.

Parameters:

linkedResources - the linkedResources value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withRecurrence

public MicrosoftGraphTodoTask withRecurrence(MicrosoftGraphPatternedRecurrence recurrence)

Set the recurrence property: patternedRecurrence.

Parameters:

recurrence - the recurrence value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withReminderDateTime

public MicrosoftGraphTodoTask withReminderDateTime(MicrosoftGraphDateTimeZone reminderDateTime)

Set the reminderDateTime property: dateTimeTimeZone.

Parameters:

reminderDateTime - the reminderDateTime value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withStatus

public MicrosoftGraphTodoTask withStatus(MicrosoftGraphTaskStatus status)

Set the status property: taskStatus.

Parameters:

status - the status value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

withTitle

public MicrosoftGraphTodoTask withTitle(String title)

Set the title property: A brief description of the task.

Parameters:

title - the title value to set.

Returns:

the MicrosoftGraphTodoTask object itself.

Applies to