Class Permission.PermissionBuilder
java.lang.Object
com.amilesend.onedrive.resource.item.type.Permission.PermissionBuilder
- Enclosing class:
Permission
-
Method Summary
Modifier and TypeMethodDescriptionbuild()connection(OneDriveConnection connection) driveItemId(String driveItemId) The associated drive item identifier that this permission applies to.grantedTo(IdentitySet grantedTo) Describes the users and applications for this permission.grantedToIdentities(List<IdentitySet> grantedToIdentities) Details of users to whom permission was granted for links.The permission identifier.inheritedFrom(ItemReference inheritedFrom) Reference to the parent permission (if applicable).invitation(SharingInvitation invitation) Sharing invitation for this permission.link(SharingLink link) Link type permission details.The type of permission.The token that can be used to access the shared item.toString()
-
Method Details
-
id
-
grantedTo
Describes the users and applications for this permission.- Returns:
this.
-
grantedToIdentities
Details of users to whom permission was granted for links.- Returns:
this.
-
invitation
Sharing invitation for this permission.- Returns:
this.
-
inheritedFrom
Reference to the parent permission (if applicable).- Returns:
this.
-
link
Link type permission details.- Returns:
this.
-
roles
The type of permission. Valid values include:- read
- write
- owner - For SharePoint and Business
- member - For SharePoint and Business
- Returns:
this.
-
driveItemId
The associated drive item identifier that this permission applies to.- Returns:
this.
-
connection
- Returns:
this.
-
build
-
toString
-