Package com.microsoft.graph.models
Class Calendar
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Calendar
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Calendar
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Calendar
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the allowedOnlineMeetingProviders property value.Gets the calendarPermissions property value.Gets the calendarView property value.Gets the canEdit property value.Gets the canShare property value.Gets the canViewPrivateItems property value.Gets the changeKey property value.getColor()
Gets the color property value.Gets the defaultOnlineMeetingProvider property value.Gets the events property value.The deserialization information for the current modelGets the hexColor property value.Gets the isDefaultCalendar property value.Gets the isRemovable property value.Gets the isTallyingResponses property value.Gets the multiValueExtendedProperties property value.getName()
Gets the name property value.getOwner()
Gets the owner property value.Gets the singleValueExtendedProperties property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the allowedOnlineMeetingProviders property value.void
Sets the calendarPermissions property value.void
setCalendarView
(List<Event> value) Sets the calendarView property value.void
setCanEdit
(Boolean value) Sets the canEdit property value.void
setCanShare
(Boolean value) Sets the canShare property value.void
setCanViewPrivateItems
(Boolean value) Sets the canViewPrivateItems property value.void
setChangeKey
(String value) Sets the changeKey property value.void
setColor
(CalendarColor value) Sets the color property value.void
Sets the defaultOnlineMeetingProvider property value.void
Sets the events property value.void
setHexColor
(String value) Sets the hexColor property value.void
setIsDefaultCalendar
(Boolean value) Sets the isDefaultCalendar property value.void
setIsRemovable
(Boolean value) Sets the isRemovable property value.void
setIsTallyingResponses
(Boolean value) Sets the isTallyingResponses property value.void
Sets the multiValueExtendedProperties property value.void
Sets the name property value.void
setOwner
(EmailAddress value) Sets the owner property value.void
Sets the singleValueExtendedProperties property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Calendar
public Calendar()Instantiates a newCalendar
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Calendar createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
Calendar
-
getAllowedOnlineMeetingProviders
Gets the allowedOnlineMeetingProviders property value. 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:
- a
List<OnlineMeetingProviderType>
-
getCalendarPermissions
Gets the calendarPermissions property value. The permissions of the users with whom the calendar is shared.- Returns:
- a
List<CalendarPermission>
-
getCalendarView
Gets the calendarView property value. The calendar view for the calendar. Navigation property. Read-only. -
getCanEdit
Gets the canEdit property value. 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 shared a calendar and granted write access.- Returns:
- a
Boolean
-
getCanViewPrivateItems
Gets the canViewPrivateItems property value. If true, the user can read calendar items that have been marked private, false otherwise.- Returns:
- a
Boolean
-
getChangeKey
Gets the changeKey property value. 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:
- a
String
-
getColor
Gets the color property value. Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor.- Returns:
- a
CalendarColor
-
getDefaultOnlineMeetingProvider
Gets the defaultOnlineMeetingProvider property value. The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.- Returns:
- a
OnlineMeetingProviderType
-
getEvents
Gets the events property value. The events in the calendar. Navigation property. Read-only. -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHexColor
Gets the hexColor property value. The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. Read-only.- Returns:
- a
String
-
getIsDefaultCalendar
Gets the isDefaultCalendar property value. true if this is the default calendar where new events are created by default, false otherwise.- Returns:
- a
Boolean
-
getIsRemovable
Gets the isRemovable property value. Indicates whether this user calendar can be deleted from the user mailbox.- Returns:
- a
Boolean
-
getIsTallyingResponses
Gets the isTallyingResponses property value. Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.- Returns:
- a
Boolean
-
getMultiValueExtendedProperties
Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.- Returns:
- a
List<MultiValueLegacyExtendedProperty>
-
getName
Gets the name property value. The calendar name.- Returns:
- a
String
-
getOwner
Gets the owner property value. If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user.- Returns:
- a
EmailAddress
-
getSingleValueExtendedProperties
Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the calendar. Read-only. Nullable.- Returns:
- a
List<SingleValueLegacyExtendedProperty>
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAllowedOnlineMeetingProviders
Sets the allowedOnlineMeetingProviders property value. 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:
value
- Value to set for the allowedOnlineMeetingProviders property.
-
setCalendarPermissions
Sets the calendarPermissions property value. The permissions of the users with whom the calendar is shared.- Parameters:
value
- Value to set for the calendarPermissions property.
-
setCalendarView
Sets the calendarView property value. The calendar view for the calendar. Navigation property. Read-only.- Parameters:
value
- Value to set for the calendarView property.
-
setCanEdit
Sets the canEdit property value. 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 shared a calendar and granted write access.- Parameters:
value
- Value to set for the canEdit property.
-
setCanViewPrivateItems
Sets the canViewPrivateItems property value. If true, the user can read calendar items that have been marked private, false otherwise.- Parameters:
value
- Value to set for the canViewPrivateItems property.
-
setChangeKey
Sets the changeKey property value. 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:
value
- Value to set for the changeKey property.
-
setColor
Sets the color property value. Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor.- Parameters:
value
- Value to set for the color property.
-
setDefaultOnlineMeetingProvider
Sets the defaultOnlineMeetingProvider property value. The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.- Parameters:
value
- Value to set for the defaultOnlineMeetingProvider property.
-
setEvents
Sets the events property value. The events in the calendar. Navigation property. Read-only.- Parameters:
value
- Value to set for the events property.
-
setHexColor
Sets the hexColor property value. The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. Read-only.- Parameters:
value
- Value to set for the hexColor property.
-
setIsDefaultCalendar
Sets the isDefaultCalendar property value. true if this is the default calendar where new events are created by default, false otherwise.- Parameters:
value
- Value to set for the isDefaultCalendar property.
-
setIsRemovable
Sets the isRemovable property value. Indicates whether this user calendar can be deleted from the user mailbox.- Parameters:
value
- Value to set for the isRemovable property.
-
setIsTallyingResponses
Sets the isTallyingResponses property value. Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.- Parameters:
value
- Value to set for the isTallyingResponses property.
-
setMultiValueExtendedProperties
Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.- Parameters:
value
- Value to set for the multiValueExtendedProperties property.
-
setName
Sets the name property value. The calendar name.- Parameters:
value
- Value to set for the name property.
-
setOwner
Sets the owner property value. If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user.- Parameters:
value
- Value to set for the owner property.
-
setSingleValueExtendedProperties
public void setSingleValueExtendedProperties(@Nullable List<SingleValueLegacyExtendedProperty> value) Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the calendar. Read-only. Nullable.- Parameters:
value
- Value to set for the singleValueExtendedProperties property.
-