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 Summary
Constructors Constructor Description MicrosoftGraphCalendarPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: calendarPermission.List<MicrosoftGraphCalendarRoleType>
allowedRoles()
Get the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar.MicrosoftGraphEmailAddress
emailAddress()
Get the emailAddress property: emailAddress.Boolean
isInsideOrganization()
Get the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.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.MicrosoftGraphCalendarRoleType
role()
Get the role property: The role property.void
validate()
Validates the instance.MicrosoftGraphCalendarPermission
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: calendarPermission.MicrosoftGraphCalendarPermission
withAllowedRoles(List<MicrosoftGraphCalendarRoleType> allowedRoles)
Set the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar.MicrosoftGraphCalendarPermission
withEmailAddress(MicrosoftGraphEmailAddress emailAddress)
Set the emailAddress property: emailAddress.MicrosoftGraphCalendarPermission
withId(String id)
Set the id property: Read-only.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.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.MicrosoftGraphCalendarPermission
withRole(MicrosoftGraphCalendarRoleType role)
Set the role property: The role property.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
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
public MicrosoftGraphCalendarRoleType role()
Get the role property: The role property.- Returns:
- the role value.
-
withRole
public MicrosoftGraphCalendarPermission withRole(MicrosoftGraphCalendarRoleType role)
Set the role property: The role property.- 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 classMicrosoftGraphEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphCalendarPermission withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: calendarPermission.- Overrides:
withAdditionalProperties
in classMicrosoftGraphEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphCalendarPermission object itself.
-
withId
public MicrosoftGraphCalendarPermission withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-