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

MicrosoftGraphCalendar Class

public final class MicrosoftGraphCalendar
extends MicrosoftGraphEntity

calendar.

Constructor Summary

Constructor Description
MicrosoftGraphCalendar()

Creates an instance of MicrosoftGraphCalendar class.

Method Summary

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

Get the additionalProperties property: calendar.

List<MicrosoftGraphOnlineMeetingProviderType> allowedOnlineMeetingProviders()

Get the allowedOnlineMeetingProviders property: Represent the online meeting service providers that can be used to create online meetings in this calendar.

List<MicrosoftGraphCalendarPermission> calendarPermissions()

Get the calendarPermissions property: The permissions of the users with whom the calendar is shared.

List<MicrosoftGraphEvent> calendarView()

Get the calendarView property: The calendar view for the calendar.

Boolean canEdit()

Get the canEdit property: True if the user can write to the calendar, false otherwise.

Boolean canShare()

Get the canShare property: True if the user has the permission to share the calendar, false otherwise.

Boolean canViewPrivateItems()

Get the canViewPrivateItems property: True if the user can read calendar items that have been marked private, false otherwise.

String changeKey()

Get the changeKey property: Identifies the version of the calendar object.

MicrosoftGraphCalendarColor color()

Get the color property: calendarColor.

MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider()

Get the defaultOnlineMeetingProvider property: onlineMeetingProviderType.

List<MicrosoftGraphEvent> events()

Get the events property: The events in the calendar.

static MicrosoftGraphCalendar fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphCalendar from the JsonReader.

String hexColor()

Get the hexColor property: The hexColor property.

Boolean isDefaultCalendar()

Get the isDefaultCalendar property: The isDefaultCalendar property.

Boolean isRemovable()

Get the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.

Boolean isTallyingResponses()

Get the isTallyingResponses property: Indicates whether this user calendar supports tracking of meeting responses.

List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()

Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar.

String name()

Get the name property: The calendar name.

MicrosoftGraphEmailAddress owner()

Get the owner property: emailAddress.

List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()

Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphCalendar withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: calendar.

MicrosoftGraphCalendar withAllowedOnlineMeetingProviders(List<MicrosoftGraphOnlineMeetingProviderType> allowedOnlineMeetingProviders)

Set the allowedOnlineMeetingProviders property: Represent the online meeting service providers that can be used to create online meetings in this calendar.

MicrosoftGraphCalendar withCalendarPermissions(List<MicrosoftGraphCalendarPermission> calendarPermissions)

Set the calendarPermissions property: The permissions of the users with whom the calendar is shared.

MicrosoftGraphCalendar withCalendarView(List<MicrosoftGraphEvent> calendarView)

Set the calendarView property: The calendar view for the calendar.

MicrosoftGraphCalendar withCanEdit(Boolean canEdit)

Set the canEdit property: True if the user can write to the calendar, false otherwise.

MicrosoftGraphCalendar withCanShare(Boolean canShare)

Set the canShare property: True if the user has the permission to share the calendar, false otherwise.

MicrosoftGraphCalendar withCanViewPrivateItems(Boolean canViewPrivateItems)

Set the canViewPrivateItems property: True if the user can read calendar items that have been marked private, false otherwise.

MicrosoftGraphCalendar withChangeKey(String changeKey)

Set the changeKey property: Identifies the version of the calendar object.

MicrosoftGraphCalendar withColor(MicrosoftGraphCalendarColor color)

Set the color property: calendarColor.

MicrosoftGraphCalendar withDefaultOnlineMeetingProvider(MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider)

Set the defaultOnlineMeetingProvider property: onlineMeetingProviderType.

MicrosoftGraphCalendar withEvents(List<MicrosoftGraphEvent> events)

Set the events property: The events in the calendar.

MicrosoftGraphCalendar withHexColor(String hexColor)

Set the hexColor property: The hexColor property.

MicrosoftGraphCalendar withId(String id)

Set the id property: Read-only.

MicrosoftGraphCalendar withIsDefaultCalendar(Boolean isDefaultCalendar)

Set the isDefaultCalendar property: The isDefaultCalendar property.

MicrosoftGraphCalendar withIsRemovable(Boolean isRemovable)

Set the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.

MicrosoftGraphCalendar withIsTallyingResponses(Boolean isTallyingResponses)

Set the isTallyingResponses property: Indicates whether this user calendar supports tracking of meeting responses.

MicrosoftGraphCalendar withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)

Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar.

MicrosoftGraphCalendar withName(String name)

Set the name property: The calendar name.

MicrosoftGraphCalendar withOwner(MicrosoftGraphEmailAddress owner)

Set the owner property: emailAddress.

MicrosoftGraphCalendar withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)

Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphCalendar

public MicrosoftGraphCalendar()

Creates an instance of MicrosoftGraphCalendar class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: calendar.

Overrides:

MicrosoftGraphCalendar.additionalProperties()

Returns:

the additionalProperties value.

allowedOnlineMeetingProviders

public List allowedOnlineMeetingProviders()

Get the allowedOnlineMeetingProviders property: Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.

Returns:

the allowedOnlineMeetingProviders value.

calendarPermissions

public List calendarPermissions()

Get the calendarPermissions property: The permissions of the users with whom the calendar is shared.

Returns:

the calendarPermissions value.

calendarView

public List calendarView()

Get the calendarView property: The calendar view for the calendar. Navigation property. Read-only.

Returns:

the calendarView value.

canEdit

public Boolean canEdit()

Get the canEdit property: True if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access.

Returns:

the canEdit value.

canShare

public Boolean canShare()

Get the canShare property: True if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it.

Returns:

the canShare value.

canViewPrivateItems

public Boolean canViewPrivateItems()

Get the canViewPrivateItems property: True if the user can read calendar items that have been marked private, false otherwise.

Returns:

the canViewPrivateItems value.

changeKey

public String changeKey()

Get the changeKey property: Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.

Returns:

the changeKey value.

color

public MicrosoftGraphCalendarColor color()

Get the color property: calendarColor.

Returns:

the color value.

defaultOnlineMeetingProvider

public MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider()

Get the defaultOnlineMeetingProvider property: onlineMeetingProviderType.

Returns:

the defaultOnlineMeetingProvider value.

events

public List events()

Get the events property: The events in the calendar. Navigation property. Read-only.

Returns:

the events value.

fromJson

public static MicrosoftGraphCalendar fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphCalendar from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hexColor

public String hexColor()

Get the hexColor property: The hexColor property.

Returns:

the hexColor value.

isDefaultCalendar

public Boolean isDefaultCalendar()

Get the isDefaultCalendar property: The isDefaultCalendar property.

Returns:

the isDefaultCalendar value.

isRemovable

public Boolean isRemovable()

Get the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.

Returns:

the isRemovable value.

isTallyingResponses

public Boolean isTallyingResponses()

Get the isTallyingResponses property: Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.

Returns:

the isTallyingResponses value.

multiValueExtendedProperties

public List multiValueExtendedProperties()

Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.

Returns:

the multiValueExtendedProperties value.

name

public String name()

Get the name property: The calendar name.

Returns:

the name value.

owner

public MicrosoftGraphEmailAddress owner()

Get the owner property: emailAddress.

Returns:

the owner value.

singleValueExtendedProperties

public List singleValueExtendedProperties()

Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar. Read-only. Nullable.

Returns:

the singleValueExtendedProperties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphCalendar.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphCalendar.validate()

withAdditionalProperties

public MicrosoftGraphCalendar withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: calendar.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withAllowedOnlineMeetingProviders

public MicrosoftGraphCalendar withAllowedOnlineMeetingProviders(List allowedOnlineMeetingProviders)

Set the allowedOnlineMeetingProviders property: Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.

Parameters:

allowedOnlineMeetingProviders - the allowedOnlineMeetingProviders value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withCalendarPermissions

public MicrosoftGraphCalendar withCalendarPermissions(List calendarPermissions)

Set the calendarPermissions property: The permissions of the users with whom the calendar is shared.

Parameters:

calendarPermissions - the calendarPermissions value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withCalendarView

public MicrosoftGraphCalendar withCalendarView(List calendarView)

Set the calendarView property: The calendar view for the calendar. Navigation property. Read-only.

Parameters:

calendarView - the calendarView value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withCanEdit

public MicrosoftGraphCalendar withCanEdit(Boolean canEdit)

Set the canEdit property: True if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access.

Parameters:

canEdit - the canEdit value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withCanShare

public MicrosoftGraphCalendar withCanShare(Boolean canShare)

Set the canShare property: True if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it.

Parameters:

canShare - the canShare value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withCanViewPrivateItems

public MicrosoftGraphCalendar withCanViewPrivateItems(Boolean canViewPrivateItems)

Set the canViewPrivateItems property: True if the user can read calendar items that have been marked private, false otherwise.

Parameters:

canViewPrivateItems - the canViewPrivateItems value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withChangeKey

public MicrosoftGraphCalendar withChangeKey(String changeKey)

Set the changeKey property: Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.

Parameters:

changeKey - the changeKey value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withColor

public MicrosoftGraphCalendar withColor(MicrosoftGraphCalendarColor color)

Set the color property: calendarColor.

Parameters:

color - the color value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withDefaultOnlineMeetingProvider

public MicrosoftGraphCalendar withDefaultOnlineMeetingProvider(MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider)

Set the defaultOnlineMeetingProvider property: onlineMeetingProviderType.

Parameters:

defaultOnlineMeetingProvider - the defaultOnlineMeetingProvider value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withEvents

public MicrosoftGraphCalendar withEvents(List events)

Set the events property: The events in the calendar. Navigation property. Read-only.

Parameters:

events - the events value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withHexColor

public MicrosoftGraphCalendar withHexColor(String hexColor)

Set the hexColor property: The hexColor property.

Parameters:

hexColor - the hexColor value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withId

public MicrosoftGraphCalendar withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphCalendar.withId(String id)

Parameters:

id

withIsDefaultCalendar

public MicrosoftGraphCalendar withIsDefaultCalendar(Boolean isDefaultCalendar)

Set the isDefaultCalendar property: The isDefaultCalendar property.

Parameters:

isDefaultCalendar - the isDefaultCalendar value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withIsRemovable

public MicrosoftGraphCalendar withIsRemovable(Boolean isRemovable)

Set the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.

Parameters:

isRemovable - the isRemovable value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withIsTallyingResponses

public MicrosoftGraphCalendar withIsTallyingResponses(Boolean isTallyingResponses)

Set the isTallyingResponses property: Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.

Parameters:

isTallyingResponses - the isTallyingResponses value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withMultiValueExtendedProperties

public MicrosoftGraphCalendar withMultiValueExtendedProperties(List multiValueExtendedProperties)

Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.

Parameters:

multiValueExtendedProperties - the multiValueExtendedProperties value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withName

public MicrosoftGraphCalendar withName(String name)

Set the name property: The calendar name.

Parameters:

name - the name value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withOwner

public MicrosoftGraphCalendar withOwner(MicrosoftGraphEmailAddress owner)

Set the owner property: emailAddress.

Parameters:

owner - the owner value to set.

Returns:

the MicrosoftGraphCalendar object itself.

withSingleValueExtendedProperties

public MicrosoftGraphCalendar withSingleValueExtendedProperties(List singleValueExtendedProperties)

Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar. Read-only. Nullable.

Parameters:

singleValueExtendedProperties - the singleValueExtendedProperties value to set.

Returns:

the MicrosoftGraphCalendar object itself.

Applies to