Package com.dropbox.core.v2.sharing
Class UserFileMembershipInfo.Builder
java.lang.Object
com.dropbox.core.v2.sharing.MembershipInfo.Builder
com.dropbox.core.v2.sharing.UserMembershipInfo.Builder
com.dropbox.core.v2.sharing.UserFileMembershipInfo.Builder
- Enclosing class:
UserFileMembershipInfo
Builder for
UserFileMembershipInfo.-
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.sharing.UserMembershipInfo.Builder
userFields inherited from class com.dropbox.core.v2.sharing.MembershipInfo.Builder
accessType, initials, isInherited, permissions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofUserFileMembershipInfoconfigured 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.withPlatformType(PlatformType platformType) Set value for optional field.withTimeLastSeen(Date timeLastSeen) Set value for optional field.
-
Field Details
-
timeLastSeen
-
platformType
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withTimeLastSeen
Set value for optional field.- Parameters:
timeLastSeen- The UTC timestamp of when the user has last seen the content. Only populated if the user has seen the content and the caller has a plan that includes viewer history.- Returns:
- this builder
-
withPlatformType
Set value for optional field.- Parameters:
platformType- The platform on which the user has last seen the content, or unknown.- Returns:
- this builder
-
withPermissions
Set value for optional field.- Overrides:
withPermissionsin classUserMembershipInfo.Builder- 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.- Overrides:
withInitialsin classUserMembershipInfo.Builder- 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.- Overrides:
withIsInheritedin classUserMembershipInfo.Builder- Parameters:
isInherited- True if the member has access on a parent folder. Defaults tofalsewhen set tonull.- Returns:
- this builder
-
build
Builds an instance ofUserFileMembershipInfoconfigured with this builder's values- Overrides:
buildin classUserMembershipInfo.Builder- Returns:
- new instance of
UserFileMembershipInfo
-