Class MicrosoftGraphCalendarPermission

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

public final class MicrosoftGraphCalendarPermission extends MicrosoftGraphEntity
calendarPermission.
  • Constructor Details

    • MicrosoftGraphCalendarPermission

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

    • allowedRoles

      public List<MicrosoftGraphCalendarRoleType> allowedRoles()
      Get the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.
      Returns:
      the allowedRoles value.
    • withAllowedRoles

      public MicrosoftGraphCalendarPermission withAllowedRoles(List<MicrosoftGraphCalendarRoleType> allowedRoles)
      Set the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.
      Parameters:
      allowedRoles - the allowedRoles value to set.
      Returns:
      the MicrosoftGraphCalendarPermission object itself.
    • emailAddress

      public MicrosoftGraphEmailAddress emailAddress()
      Get the emailAddress property: emailAddress.
      Returns:
      the emailAddress value.
    • withEmailAddress

      public MicrosoftGraphCalendarPermission withEmailAddress(MicrosoftGraphEmailAddress emailAddress)
      Set the emailAddress property: emailAddress.
      Parameters:
      emailAddress - the emailAddress value to set.
      Returns:
      the MicrosoftGraphCalendarPermission object itself.
    • isInsideOrganization

      public Boolean isInsideOrganization()
      Get the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.
      Returns:
      the isInsideOrganization value.
    • withIsInsideOrganization

      public MicrosoftGraphCalendarPermission withIsInsideOrganization(Boolean isInsideOrganization)
      Set the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.
      Parameters:
      isInsideOrganization - the isInsideOrganization value to set.
      Returns:
      the MicrosoftGraphCalendarPermission object itself.
    • isRemovable

      public Boolean isRemovable()
      Get the isRemovable property: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You cannot remove 'My organization' as a sharee to a calendar.
      Returns:
      the isRemovable value.
    • withIsRemovable

      public MicrosoftGraphCalendarPermission withIsRemovable(Boolean isRemovable)
      Set the isRemovable property: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You cannot remove 'My organization' as a sharee to a calendar.
      Parameters:
      isRemovable - the isRemovable value to set.
      Returns:
      the MicrosoftGraphCalendarPermission object itself.
    • role

      Get the role property: calendarRoleType.
      Returns:
      the role value.
    • withRole

      Set the role property: calendarRoleType.
      Parameters:
      role - the role value to set.
      Returns:
      the MicrosoftGraphCalendarPermission object itself.
    • additionalProperties

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

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

      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.