Class MicrosoftGraphCalendar

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphCalendar

public final class MicrosoftGraphCalendar extends MicrosoftGraphEntity
calendar.
  • Constructor Details

    • MicrosoftGraphCalendar

      public MicrosoftGraphCalendar()
      Creates an instance of MicrosoftGraphCalendar class.
  • Method Details

    • allowedOnlineMeetingProviders

      public List<MicrosoftGraphOnlineMeetingProviderType> 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.
    • withAllowedOnlineMeetingProviders

      public 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. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.
      Parameters:
      allowedOnlineMeetingProviders - the allowedOnlineMeetingProviders value to set.
      Returns:
      the MicrosoftGraphCalendar object itself.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • color

      Get the color property: calendarColor.
      Returns:
      the color value.
    • withColor

      Set the color property: calendarColor.
      Parameters:
      color - the color value to set.
      Returns:
      the MicrosoftGraphCalendar object itself.
    • defaultOnlineMeetingProvider

      public MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider()
      Get the defaultOnlineMeetingProvider property: onlineMeetingProviderType.
      Returns:
      the defaultOnlineMeetingProvider value.
    • withDefaultOnlineMeetingProvider

      public MicrosoftGraphCalendar withDefaultOnlineMeetingProvider(MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider)
      Set the defaultOnlineMeetingProvider property: onlineMeetingProviderType.
      Parameters:
      defaultOnlineMeetingProvider - the defaultOnlineMeetingProvider value to set.
      Returns:
      the MicrosoftGraphCalendar object itself.
    • hexColor

      public String hexColor()
      Get the hexColor property: The hexColor property.
      Returns:
      the hexColor value.
    • 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.
    • isDefaultCalendar

      public Boolean isDefaultCalendar()
      Get the isDefaultCalendar property: The isDefaultCalendar property.
      Returns:
      the isDefaultCalendar value.
    • 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.
    • isRemovable

      public Boolean isRemovable()
      Get the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.
      Returns:
      the isRemovable value.
    • 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.
    • 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.
    • 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.
    • name

      public String name()
      Get the name property: The calendar name.
      Returns:
      the name value.
    • 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.
    • owner

      Get the owner property: emailAddress.
      Returns:
      the owner value.
    • withOwner

      Set the owner property: emailAddress.
      Parameters:
      owner - the owner value to set.
      Returns:
      the MicrosoftGraphCalendar object itself.
    • calendarPermissions

      public List<MicrosoftGraphCalendarPermission> calendarPermissions()
      Get the calendarPermissions property: The permissions of the users with whom the calendar is shared.
      Returns:
      the calendarPermissions value.
    • withCalendarPermissions

      public MicrosoftGraphCalendar withCalendarPermissions(List<MicrosoftGraphCalendarPermission> 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.
    • calendarView

      public List<MicrosoftGraphEvent> calendarView()
      Get the calendarView property: The calendar view for the calendar. Navigation property. Read-only.
      Returns:
      the calendarView value.
    • withCalendarView

      public MicrosoftGraphCalendar withCalendarView(List<MicrosoftGraphEvent> 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.
    • events

      public List<MicrosoftGraphEvent> events()
      Get the events property: The events in the calendar. Navigation property. Read-only.
      Returns:
      the events value.
    • withEvents

      public MicrosoftGraphCalendar withEvents(List<MicrosoftGraphEvent> 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.
    • multiValueExtendedProperties

      public List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()
      Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
      Returns:
      the multiValueExtendedProperties value.
    • withMultiValueExtendedProperties

      public MicrosoftGraphCalendar withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> 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.
    • singleValueExtendedProperties

      public List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()
      Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
      Returns:
      the singleValueExtendedProperties value.
    • withSingleValueExtendedProperties

      public MicrosoftGraphCalendar withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> 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.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: calendar.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphCalendar withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: calendar.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphCalendar object itself.
    • withId

      public MicrosoftGraphCalendar withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.