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
  • Constructor Details

    • Calendar

      public Calendar()
      Instantiates a new Calendar 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

      @Nullable public List<OnlineMeetingProviderType> 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

      @Nullable public List<CalendarPermission> getCalendarPermissions()
      Gets the calendarPermissions property value. The permissions of the users with whom the calendar is shared.
      Returns:
      a List<CalendarPermission>
    • getCalendarView

      @Nullable public List<Event> getCalendarView()
      Gets the calendarView property value. The calendar view for the calendar. Navigation property. Read-only.
      Returns:
      a List<Event>
    • getCanEdit

      @Nullable public Boolean 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
    • getCanShare

      @Nullable public Boolean getCanShare()
      Gets the canShare property value. true if the user has permission to share the calendar, false otherwise. Only the user who created the calendar can share it.
      Returns:
      a Boolean
    • getCanViewPrivateItems

      @Nullable public 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

      @Nullable public String 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

      @Nullable public CalendarColor 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

      @Nullable public OnlineMeetingProviderType 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

      @Nullable public List<Event> getEvents()
      Gets the events property value. The events in the calendar. Navigation property. Read-only.
      Returns:
      a List<Event>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHexColor

      @Nullable public String 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

      @Nullable public Boolean 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

      @Nullable public Boolean getIsRemovable()
      Gets the isRemovable property value. Indicates whether this user calendar can be deleted from the user mailbox.
      Returns:
      a Boolean
    • getIsTallyingResponses

      @Nullable public 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

      @Nullable public List<MultiValueLegacyExtendedProperty> 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

      @Nullable public String getName()
      Gets the name property value. The calendar name.
      Returns:
      a String
    • getOwner

      @Nullable public EmailAddress 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

      @Nullable public List<SingleValueLegacyExtendedProperty> 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAllowedOnlineMeetingProviders

      public void setAllowedOnlineMeetingProviders(@Nullable List<OnlineMeetingProviderType> value)
      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

      public void setCalendarPermissions(@Nullable List<CalendarPermission> value)
      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

      public void setCalendarView(@Nullable List<Event> value)
      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

      public void setCanEdit(@Nullable Boolean value)
      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.
    • setCanShare

      public void setCanShare(@Nullable Boolean value)
      Sets the canShare property value. true if the user has permission to share the calendar, false otherwise. Only the user who created the calendar can share it.
      Parameters:
      value - Value to set for the canShare property.
    • setCanViewPrivateItems

      public void setCanViewPrivateItems(@Nullable Boolean value)
      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

      public void setChangeKey(@Nullable String value)
      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

      public void setColor(@Nullable CalendarColor value)
      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

      public void setDefaultOnlineMeetingProvider(@Nullable OnlineMeetingProviderType value)
      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

      public void setEvents(@Nullable List<Event> value)
      Sets the events property value. The events in the calendar. Navigation property. Read-only.
      Parameters:
      value - Value to set for the events property.
    • setHexColor

      public void setHexColor(@Nullable String value)
      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

      public void setIsDefaultCalendar(@Nullable Boolean value)
      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

      public void setIsRemovable(@Nullable Boolean value)
      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

      public void setIsTallyingResponses(@Nullable Boolean value)
      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

      public void setMultiValueExtendedProperties(@Nullable List<MultiValueLegacyExtendedProperty> value)
      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

      public void setName(@Nullable String value)
      Sets the name property value. The calendar name.
      Parameters:
      value - Value to set for the name property.
    • setOwner

      public void setOwner(@Nullable EmailAddress value)
      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.