Package com.dropbox.core.v2.sharing
Class MembershipInfo
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.MembershipInfo
 
- 
- Direct Known Subclasses:
- GroupMembershipInfo,- InviteeMembershipInfo,- UserMembershipInfo
 
 public class MembershipInfo extends java.lang.ObjectThe information about a member of the shared content.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMembershipInfo.BuilderBuilder forMembershipInfo.
 - 
Field SummaryFields Modifier and Type Field Description protected AccessLevelaccessTypeprotected java.lang.Stringinitialsprotected booleanisInheritedprotected java.util.List<MemberPermission>permissions
 - 
Constructor SummaryConstructors Constructor Description MembershipInfo(AccessLevel accessType)The information about a member of the shared content.MembershipInfo(AccessLevel accessType, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited)The information about a member of the shared content.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AccessLevelgetAccessType()The access type for this member.java.lang.StringgetInitials()Never set.booleangetIsInherited()True if the member has access from a parent folder.java.util.List<MemberPermission>getPermissions()The permissions that requesting user has on this member.inthashCode()static MembershipInfo.BuildernewBuilder(AccessLevel accessType)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
accessTypeprotected final AccessLevel accessType 
 - 
permissionsprotected final java.util.List<MemberPermission> permissions 
 - 
initialsprotected final java.lang.String initials 
 - 
isInheritedprotected final boolean isInherited 
 
- 
 - 
Constructor Detail- 
MembershipInfopublic MembershipInfo(AccessLevel accessType, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited) The information about a member of the shared content.Use newBuilder(com.dropbox.core.v2.sharing.AccessLevel)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 be- null.
- permissions- The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. Must not contain a- nullitem.
- initials- Never set.
- isInherited- True if the member has access from a parent folder.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
MembershipInfopublic MembershipInfo(AccessLevel accessType) The information about a member of the 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 be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAccessTypepublic AccessLevel getAccessType() The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.- Returns:
- value for this field, never null.
 
 - 
getPermissionspublic java.util.List<MemberPermission> getPermissions() The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.- Returns:
- value for this field, or nullif not present.
 
 - 
getInitialspublic java.lang.String getInitials() Never set.- Returns:
- value for this field, or nullif not present.
 
 - 
getIsInheritedpublic boolean getIsInherited() True if the member has access from a parent folder.- Returns:
- value for this field, or nullif not present. Defaults to false.
 
 - 
newBuilderpublic static MembershipInfo.Builder newBuilder(AccessLevel accessType) 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 be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-