Package com.dropbox.core.v2.sharing
Class MembershipInfo.Builder
java.lang.Object
com.dropbox.core.v2.sharing.MembershipInfo.Builder
- Direct Known Subclasses:
GroupMembershipInfo.Builder,InviteeMembershipInfo.Builder,UserMembershipInfo.Builder
- Enclosing class:
MembershipInfo
Builder for
MembershipInfo.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessLevelprotected Stringprotected booleanprotected List<MemberPermission> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofMembershipInfoconfigured with this builder's valueswithInitials(String initials) Deprecated.withIsInherited(Boolean isInherited) Set value for optional field.withPermissions(List<MemberPermission> permissions) Set value for optional field.
-
Field Details
-
accessType
-
permissions
-
initials
-
isInherited
protected boolean isInherited
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withPermissions
Set value for optional field.- Parameters:
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.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withInitials
Deprecated.Set value for optional field.- Parameters:
initials- Field is deprecated. Never set.- Returns:
- this builder
-
withIsInherited
Set value for optional field.If left unset or set to
null, defaults tofalse.- Parameters:
isInherited- True if the member has access on a parent folder. Defaults tofalsewhen set tonull.- Returns:
- this builder
-
build
Builds an instance ofMembershipInfoconfigured with this builder's values- Returns:
- new instance of
MembershipInfo
-