public class SharedContentChangeInviteeRoleDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
invitee |
protected AccessLevel |
newAccessLevel |
protected AccessLevel |
previousAccessLevel |
Constructor and Description |
---|
SharedContentChangeInviteeRoleDetails(AccessLevel newAccessLevel,
java.lang.String invitee)
Changed access type of invitee to shared file/folder before invite was
accepted.
|
SharedContentChangeInviteeRoleDetails(AccessLevel newAccessLevel,
java.lang.String invitee,
AccessLevel previousAccessLevel)
Changed access type of invitee to shared file/folder before invite was
accepted.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInvitee()
The invitee whose role was changed.
|
AccessLevel |
getNewAccessLevel()
New access level.
|
AccessLevel |
getPreviousAccessLevel()
Previous access level.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final AccessLevel previousAccessLevel
protected final AccessLevel newAccessLevel
protected final java.lang.String invitee
public SharedContentChangeInviteeRoleDetails(AccessLevel newAccessLevel, java.lang.String invitee, AccessLevel previousAccessLevel)
newAccessLevel
- New access level. Must not be null
.invitee
- The invitee whose role was changed. Must have length of
at most 255 and not be null
.previousAccessLevel
- Previous access level. Might be missing due
to historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedContentChangeInviteeRoleDetails(AccessLevel newAccessLevel, java.lang.String invitee)
The default values for unset fields will be used.
newAccessLevel
- New access level. Must not be null
.invitee
- The invitee whose role was changed. Must have length of
at most 255 and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AccessLevel getNewAccessLevel()
null
.public java.lang.String getInvitee()
null
.public AccessLevel getPreviousAccessLevel()
null
if not present.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.