Class MicrosoftGraphCalendarPermission
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphCalendarPermission
calendarPermission.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphCalendarPermission class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: calendarPermission.Get the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar.Get the emailAddress property: emailAddress.Get the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.Get the isRemovable property: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise.role()Get the role property: calendarRoleType.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: calendarPermission.withAllowedRoles(List<MicrosoftGraphCalendarRoleType> allowedRoles) Set the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar.withEmailAddress(MicrosoftGraphEmailAddress emailAddress) Set the emailAddress property: emailAddress.Set the id property: Read-only.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.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.Set the role property: calendarRoleType.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphCalendarPermission
public MicrosoftGraphCalendarPermission()Creates an instance of MicrosoftGraphCalendarPermission class.
-
-
Method Details
-
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
Get the emailAddress property: emailAddress.- Returns:
- the emailAddress value.
-
withEmailAddress
Set the emailAddress property: emailAddress.- Parameters:
emailAddress- the emailAddress value to set.- Returns:
- the MicrosoftGraphCalendarPermission object itself.
-
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
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
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
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
Get the additionalProperties property: calendarPermission.- Overrides:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphCalendarPermission withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: calendarPermission.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphCalendarPermission object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-