Class MicrosoftGraphPermission

    • Constructor Detail

      • MicrosoftGraphPermission

        public MicrosoftGraphPermission()
    • Method Detail

      • expirationDateTime

        public OffsetDateTime expirationDateTime()
        Get the expirationDateTime property: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.
        Returns:
        the expirationDateTime value.
      • withExpirationDateTime

        public MicrosoftGraphPermission withExpirationDateTime​(OffsetDateTime expirationDateTime)
        Set the expirationDateTime property: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.
        Parameters:
        expirationDateTime - the expirationDateTime value to set.
        Returns:
        the MicrosoftGraphPermission object itself.
      • grantedTo

        public MicrosoftGraphIdentitySet grantedTo()
        Get the grantedTo property: identitySet.
        Returns:
        the grantedTo value.
      • withGrantedTo

        public MicrosoftGraphPermission withGrantedTo​(MicrosoftGraphIdentitySet grantedTo)
        Set the grantedTo property: identitySet.
        Parameters:
        grantedTo - the grantedTo value to set.
        Returns:
        the MicrosoftGraphPermission object itself.
      • grantedToIdentities

        public List<MicrosoftGraphIdentitySet> grantedToIdentities()
        Get the grantedToIdentities property: For link type permissions, the details of the users to whom permission was granted. Read-only.
        Returns:
        the grantedToIdentities value.
      • withGrantedToIdentities

        public MicrosoftGraphPermission withGrantedToIdentities​(List<MicrosoftGraphIdentitySet> grantedToIdentities)
        Set the grantedToIdentities property: For link type permissions, the details of the users to whom permission was granted. Read-only.
        Parameters:
        grantedToIdentities - the grantedToIdentities value to set.
        Returns:
        the MicrosoftGraphPermission object itself.
      • hasPassword

        public Boolean hasPassword()
        Get the hasPassword property: This indicates whether password is set for this permission, it's only showing in response. Optional and Read-only and for OneDrive Personal only.
        Returns:
        the hasPassword value.
      • withHasPassword

        public MicrosoftGraphPermission withHasPassword​(Boolean hasPassword)
        Set the hasPassword property: This indicates whether password is set for this permission, it's only showing in response. Optional and Read-only and for OneDrive Personal only.
        Parameters:
        hasPassword - the hasPassword value to set.
        Returns:
        the MicrosoftGraphPermission object itself.
      • inheritedFrom

        public MicrosoftGraphItemReference inheritedFrom()
        Get the inheritedFrom property: itemReference.
        Returns:
        the inheritedFrom value.
      • withInheritedFrom

        public MicrosoftGraphPermission withInheritedFrom​(MicrosoftGraphItemReference inheritedFrom)
        Set the inheritedFrom property: itemReference.
        Parameters:
        inheritedFrom - the inheritedFrom value to set.
        Returns:
        the MicrosoftGraphPermission object itself.
      • roles

        public List<String> roles()
        Get the roles property: The type of permission, e.g. read. See below for the full list of roles. Read-only.
        Returns:
        the roles value.
      • withRoles

        public MicrosoftGraphPermission withRoles​(List<String> roles)
        Set the roles property: The type of permission, e.g. read. See below for the full list of roles. Read-only.
        Parameters:
        roles - the roles value to set.
        Returns:
        the MicrosoftGraphPermission object itself.
      • shareId

        public String shareId()
        Get the shareId property: A unique token that can be used to access this shared item via the **shares** API. Read-only.
        Returns:
        the shareId value.
      • withShareId

        public MicrosoftGraphPermission withShareId​(String shareId)
        Set the shareId property: A unique token that can be used to access this shared item via the **shares** API. Read-only.
        Parameters:
        shareId - the shareId value to set.
        Returns:
        the MicrosoftGraphPermission object itself.