Package com.dropbox.core.v2.sharing
Class InviteeMembershipInfo
java.lang.Object
com.dropbox.core.v2.sharing.MembershipInfo
com.dropbox.core.v2.sharing.InviteeMembershipInfo
Information about an invited member of a shared content.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.sharing.MembershipInfo
accessType, initials, isInherited, permissions -
Constructor Summary
ConstructorsConstructorDescriptionInviteeMembershipInfo(AccessLevel accessType, InviteeInfo invitee) Information about an invited member of a shared content.InviteeMembershipInfo(AccessLevel accessType, InviteeInfo invitee, List<MemberPermission> permissions, String initials, boolean isInherited, UserInfo user) Information about an invited member of a shared content. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe access type for this member.Deprecated.Recipient of the invitation.booleanTrue if the member has access on a parent folder.The permissions that requesting user has on this member.getUser()The user this invitation is tied to, if available.inthashCode()newBuilder(AccessLevel accessType, InviteeInfo invitee) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.sharing.MembershipInfo
newBuilder
-
Field Details
-
invitee
-
user
-
-
Constructor Details
-
InviteeMembershipInfo
public InviteeMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull InviteeInfo invitee, @Nullable List<MemberPermission> permissions, @Nullable String initials, boolean isInherited, @Nullable UserInfo user) Information about an invited member of a shared content.Use
newBuilder(com.dropbox.core.v2.sharing.AccessLevel,com.dropbox.core.v2.sharing.InviteeInfo)to create instances of this class without specifying values for all optional fields.- Parameters:
accessType- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull.invitee- Recipient of the invitation. Must not benull.permissions- The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. Must not contain anullitem.initials- Field is deprecated. Never set.isInherited- True if the member has access on a parent folder.user- The user this invitation is tied to, if available.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
InviteeMembershipInfo
Information about an invited member of a shared content.The default values for unset fields will be used.
- Parameters:
accessType- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull.invitee- Recipient of the invitation. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getAccessType
The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.- Overrides:
getAccessTypein classMembershipInfo- Returns:
- value for this field, never
null.
-
getInvitee
Recipient of the invitation.- Returns:
- value for this field, never
null.
-
getPermissions
The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.- Overrides:
getPermissionsin classMembershipInfo- Returns:
- value for this field, or
nullif not present.
-
getInitials
Deprecated.Field is deprecated. Never set.- Overrides:
getInitialsin classMembershipInfo- Returns:
- value for this field, or
nullif not present.
-
getIsInherited
public boolean getIsInherited()True if the member has access on a parent folder.- Overrides:
getIsInheritedin classMembershipInfo- Returns:
- value for this field, or
nullif not present. Defaults to false.
-
getUser
The user this invitation is tied to, if available.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
accessType- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull.invitee- Recipient of the invitation. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classMembershipInfo
-
equals
- Overrides:
equalsin classMembershipInfo
-
toString
- Overrides:
toStringin classMembershipInfo
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classMembershipInfo- Returns:
- Formatted, multiline String representation of this object
-