public class AddMember
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MemberSelector |
member |
protected PaperDocPermissionLevel |
permissionLevel |
Constructor and Description |
---|
AddMember(MemberSelector member)
None
|
AddMember(MemberSelector member,
PaperDocPermissionLevel permissionLevel) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
MemberSelector |
getMember()
User which should be added to the Paper doc.
|
PaperDocPermissionLevel |
getPermissionLevel()
Permission for the user.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final PaperDocPermissionLevel permissionLevel
protected final MemberSelector member
public AddMember(MemberSelector member, PaperDocPermissionLevel permissionLevel)
member
- User which should be added to the Paper doc. Specify only
email address or Dropbox account ID. Must not be null
.permissionLevel
- Permission for the user. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AddMember(MemberSelector member)
The default values for unset fields will be used.
member
- User which should be added to the Paper doc. Specify only
email address or Dropbox account ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberSelector getMember()
null
.public PaperDocPermissionLevel getPermissionLevel()
null
if not present. Defaults to
PaperDocPermissionLevel.EDIT.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.