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.MicrosoftGraphEmailAddressemailAddress()Get the emailAddress property: emailAddress.BooleanisInsideOrganization()Get the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.BooleanisRemovable()Get the isRemovable property: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise.MicrosoftGraphCalendarRoleTyperole()Get the role property: The role property.voidvalidate()Validates the instance.MicrosoftGraphCalendarPermissionwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: calendarPermission.MicrosoftGraphCalendarPermissionwithAllowedRoles(List<MicrosoftGraphCalendarRoleType> allowedRoles)Set the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar.MicrosoftGraphCalendarPermissionwithEmailAddress(MicrosoftGraphEmailAddress emailAddress)Set the emailAddress property: emailAddress.MicrosoftGraphCalendarPermissionwithId(String id)Set the id property: Read-only.MicrosoftGraphCalendarPermissionwithIsInsideOrganization(Boolean isInsideOrganization)Set the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.MicrosoftGraphCalendarPermissionwithIsRemovable(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.MicrosoftGraphCalendarPermissionwithRole(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:
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
public MicrosoftGraphCalendarPermission withId(String id)
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.
-
-