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
  • Constructor Details

    • CalendarPermission

      public CalendarPermission()
      Instantiates a new CalendarPermission and 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

      @Nullable public List<CalendarRoleType> 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

      @Nullable public EmailAddress 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:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsInsideOrganization

      @Nullable public Boolean 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

      @Nullable public 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

      @Nullable public CalendarRoleType 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAllowedRoles

      public void setAllowedRoles(@Nullable List<CalendarRoleType> value)
      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

      public void setEmailAddress(@Nullable EmailAddress value)
      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

      public void setIsInsideOrganization(@Nullable Boolean value)
      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

      public void setIsRemovable(@Nullable Boolean value)
      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

      public void setRole(@Nullable CalendarRoleType value)
      Sets the role property value. Current permission level of the calendar share recipient or delegate.
      Parameters:
      value - Value to set for the role property.