Class AddPermissionRequest

java.lang.Object
com.amilesend.onedrive.resource.request.AddPermissionRequest

public class AddPermissionRequest extends Object
Represents a request to share the item to one or more recipients.

API Documentation.

  • Method Details

    • builder

    • getRecipients

      public List<DriveRecipient> getRecipients()
      The list of recipients.
    • getMessage

      public String getMessage()
      A message to include in the invite.
    • isRequireSignIn

      public boolean isRequireSignIn()
      Indicates if accessing the shared item requires sign-in.
    • isSendInvitation

      public boolean isSendInvitation()
      Indicates if an invitation should be sent to the recipient, or just grant the permission.
    • getRoles

      public List<String> getRoles()
      The allowed roles granted to the recipients. Valid values include:
      • read
      • write
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object