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

MicrosoftGraphPlannerPlan Class

public final class MicrosoftGraphPlannerPlan
extends MicrosoftGraphEntity

plannerPlan.

Constructor Summary

Constructor Description
MicrosoftGraphPlannerPlan()

Creates an instance of MicrosoftGraphPlannerPlan class.

Method Summary

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

Get the additionalProperties property: plannerPlan.

List<MicrosoftGraphPlannerBucket> buckets()

Get the buckets property: Read-only.

MicrosoftGraphIdentitySet createdBy()

Get the createdBy property: identitySet.

OffsetDateTime createdDateTime()

Get the createdDateTime property: Read-only.

MicrosoftGraphPlannerPlanDetails details()

Get the details property: plannerPlanDetails.

static MicrosoftGraphPlannerPlan fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPlannerPlan from the JsonReader.

String owner()

Get the owner property: ID of the Group that owns the plan.

List<MicrosoftGraphPlannerTask> tasks()

Get the tasks property: Read-only.

String title()

Get the title property: Required.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphPlannerPlan withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: plannerPlan.

MicrosoftGraphPlannerPlan withBuckets(List<MicrosoftGraphPlannerBucket> buckets)

Set the buckets property: Read-only.

MicrosoftGraphPlannerPlan withCreatedBy(MicrosoftGraphIdentitySet createdBy)

Set the createdBy property: identitySet.

MicrosoftGraphPlannerPlan withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Read-only.

MicrosoftGraphPlannerPlan withDetails(MicrosoftGraphPlannerPlanDetails details)

Set the details property: plannerPlanDetails.

MicrosoftGraphPlannerPlan withId(String id)

Set the id property: Read-only.

MicrosoftGraphPlannerPlan withOwner(String owner)

Set the owner property: ID of the Group that owns the plan.

MicrosoftGraphPlannerPlan withTasks(List<MicrosoftGraphPlannerTask> tasks)

Set the tasks property: Read-only.

MicrosoftGraphPlannerPlan withTitle(String title)

Set the title property: Required.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPlannerPlan

public MicrosoftGraphPlannerPlan()

Creates an instance of MicrosoftGraphPlannerPlan class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: plannerPlan.

Overrides:

MicrosoftGraphPlannerPlan.additionalProperties()

Returns:

the additionalProperties value.

buckets

public List buckets()

Get the buckets property: Read-only. Nullable. Collection of buckets in the plan.

Returns:

the buckets value.

createdBy

public MicrosoftGraphIdentitySet createdBy()

Get the createdBy property: identitySet.

Returns:

the createdBy value.

createdDateTime

public OffsetDateTime createdDateTime()

Get the createdDateTime property: Read-only. Date and time at which the plan 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 would look like this: '2014-01-01T00:00:00Z'.

Returns:

the createdDateTime value.

details

public MicrosoftGraphPlannerPlanDetails details()

Get the details property: plannerPlanDetails.

Returns:

the details value.

fromJson

public static MicrosoftGraphPlannerPlan fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPlannerPlan from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphPlannerPlan 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 MicrosoftGraphPlannerPlan.

owner

public String owner()

Get the owner property: ID of the Group that owns the plan. A valid group must exist before this field can be set. After it is set, this property can\u2019t be updated.

Returns:

the owner value.

tasks

public List tasks()

Get the tasks property: Read-only. Nullable. Collection of tasks in the plan.

Returns:

the tasks value.

title

public String title()

Get the title property: Required. Title of the plan.

Returns:

the title value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphPlannerPlan.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphPlannerPlan.validate()

withAdditionalProperties

public MicrosoftGraphPlannerPlan withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: plannerPlan.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPlannerPlan object itself.

withBuckets

public MicrosoftGraphPlannerPlan withBuckets(List buckets)

Set the buckets property: Read-only. Nullable. Collection of buckets in the plan.

Parameters:

buckets - the buckets value to set.

Returns:

the MicrosoftGraphPlannerPlan object itself.

withCreatedBy

public MicrosoftGraphPlannerPlan withCreatedBy(MicrosoftGraphIdentitySet createdBy)

Set the createdBy property: identitySet.

Parameters:

createdBy - the createdBy value to set.

Returns:

the MicrosoftGraphPlannerPlan object itself.

withCreatedDateTime

public MicrosoftGraphPlannerPlan withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Read-only. Date and time at which the plan 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 would look like this: '2014-01-01T00:00:00Z'.

Parameters:

createdDateTime - the createdDateTime value to set.

Returns:

the MicrosoftGraphPlannerPlan object itself.

withDetails

public MicrosoftGraphPlannerPlan withDetails(MicrosoftGraphPlannerPlanDetails details)

Set the details property: plannerPlanDetails.

Parameters:

details - the details value to set.

Returns:

the MicrosoftGraphPlannerPlan object itself.

withId

public MicrosoftGraphPlannerPlan withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphPlannerPlan.withId(String id)

Parameters:

id

withOwner

public MicrosoftGraphPlannerPlan withOwner(String owner)

Set the owner property: ID of the Group that owns the plan. A valid group must exist before this field can be set. After it is set, this property can\u2019t be updated.

Parameters:

owner - the owner value to set.

Returns:

the MicrosoftGraphPlannerPlan object itself.

withTasks

public MicrosoftGraphPlannerPlan withTasks(List tasks)

Set the tasks property: Read-only. Nullable. Collection of tasks in the plan.

Parameters:

tasks - the tasks value to set.

Returns:

the MicrosoftGraphPlannerPlan object itself.

withTitle

public MicrosoftGraphPlannerPlan withTitle(String title)

Set the title property: Required. Title of the plan.

Parameters:

title - the title value to set.

Returns:

the MicrosoftGraphPlannerPlan object itself.

Applies to