Package com.microsoft.graph.models
Class CalendarPermission
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.CalendarPermission
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class CalendarPermission
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarPermissioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the allowedRoles property value.Gets the emailAddress property value.The deserialization information for the current modelGets the isInsideOrganization property value.Gets the isRemovable property value.getRole()Gets the role property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAllowedRoles(List<CalendarRoleType> value) Sets the allowedRoles property value.voidsetEmailAddress(EmailAddress value) Sets the emailAddress property value.voidsetIsInsideOrganization(Boolean value) Sets the isInsideOrganization property value.voidsetIsRemovable(Boolean value) Sets the isRemovable property value.voidsetRole(CalendarRoleType value) Sets the role property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
CalendarPermission
public CalendarPermission()Instantiates a newCalendarPermissionand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static CalendarPermission createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
CalendarPermission
-
getAllowedRoles
Gets the allowedRoles property value. List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.- Returns:
- a
List<CalendarRoleType>
-
getEmailAddress
Gets the emailAddress property value. Represents a share recipient or delegate who has access to the calendar. For the 'My Organization' share recipient, the address property is null. Read-only.- Returns:
- a
EmailAddress
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsInsideOrganization
Gets the isInsideOrganization property value. True if the user in context (recipient or delegate) is inside the same organization as the calendar owner.- Returns:
- a
Boolean
-
getIsRemovable
Gets the isRemovable property value. True if the user can be removed from the list of recipients 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 can't remove 'My organization' as a share recipient to a calendar.- Returns:
- a
Boolean
-
getRole
Gets the role property value. Current permission level of the calendar share recipient or delegate.- Returns:
- a
CalendarRoleType
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAllowedRoles
Sets the allowedRoles property value. List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.- Parameters:
value- Value to set for the allowedRoles property.
-
setEmailAddress
Sets the emailAddress property value. Represents a share recipient or delegate who has access to the calendar. For the 'My Organization' share recipient, the address property is null. Read-only.- Parameters:
value- Value to set for the emailAddress property.
-
setIsInsideOrganization
Sets the isInsideOrganization property value. True if the user in context (recipient or delegate) is inside the same organization as the calendar owner.- Parameters:
value- Value to set for the isInsideOrganization property.
-
setIsRemovable
Sets the isRemovable property value. True if the user can be removed from the list of recipients 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 can't remove 'My organization' as a share recipient to a calendar.- Parameters:
value- Value to set for the isRemovable property.
-
setRole
Sets the role property value. Current permission level of the calendar share recipient or delegate.- Parameters:
value- Value to set for the role property.
-