public class AddMember extends Object
Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
accessLevel |
protected MemberSelector |
member |
Constructor and Description |
---|
AddMember(MemberSelector member)
The member and type of access the member should have when added to a
shared folder.
|
AddMember(MemberSelector member,
AccessLevel accessLevel)
The member and type of access the member should have when added to a
shared folder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AccessLevel |
getAccessLevel()
The access level to grant
getMember() to the shared
folder. |
MemberSelector |
getMember()
The member to add to the shared folder.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final MemberSelector member
protected final AccessLevel accessLevel
public AddMember(MemberSelector member, AccessLevel accessLevel)
member
- The member to add to the shared folder. Must not be null
.accessLevel
- The access level to grant getMember()
to the shared folder. AccessLevel.OWNER
is disallowed. Must
not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public AddMember(MemberSelector member)
The default values for unset fields will be used.
member
- The member to add to the shared folder. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberSelector getMember()
null
.public AccessLevel getAccessLevel()
getMember()
to the shared
folder. AccessLevel.OWNER
is disallowed.null
if not present. Defaults to
AccessLevel.VIEWER.public String toStringMultiline()
The returned String may contain newlines.