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
 
 public static class UserFileMembershipInfo.Builder extends UserMembershipInfo.Builder Builder forUserFileMembershipInfo.
- 
- 
Field SummaryFields Modifier and Type Field Description protected PlatformTypeplatformTypeprotected java.util.DatetimeLastSeen- 
Fields inherited from class com.dropbox.core.v2.sharing.UserMembershipInfo.Builderuser
 - 
Fields inherited from class com.dropbox.core.v2.sharing.MembershipInfo.BuilderaccessType, initials, isInherited, permissions
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(AccessLevel accessType, UserInfo user)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UserFileMembershipInfobuild()Builds an instance ofUserFileMembershipInfoconfigured with this builder's valuesUserFileMembershipInfo.BuilderwithInitials(java.lang.String initials)Set value for optional field.UserFileMembershipInfo.BuilderwithIsInherited(java.lang.Boolean isInherited)Set value for optional field.UserFileMembershipInfo.BuilderwithPermissions(java.util.List<MemberPermission> permissions)Set value for optional field.UserFileMembershipInfo.BuilderwithPlatformType(PlatformType platformType)Set value for optional field.UserFileMembershipInfo.BuilderwithTimeLastSeen(java.util.Date timeLastSeen)Set value for optional field.
 
- 
- 
- 
Field Detail- 
timeLastSeenprotected java.util.Date timeLastSeen 
 - 
platformTypeprotected PlatformType platformType 
 
- 
 - 
Constructor Detail- 
Builderprotected Builder(AccessLevel accessType, UserInfo user) 
 
- 
 - 
Method Detail- 
withTimeLastSeenpublic UserFileMembershipInfo.Builder withTimeLastSeen(java.util.Date timeLastSeen) 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
 
 - 
withPlatformTypepublic UserFileMembershipInfo.Builder withPlatformType(PlatformType platformType) Set value for optional field.- Parameters:
- platformType- The platform on which the user has last seen the content, or unknown.
- Returns:
- this builder
 
 - 
withPermissionspublic UserFileMembershipInfo.Builder withPermissions(java.util.List<MemberPermission> permissions) Set value for optional field.- Overrides:
- withPermissionsin class- UserMembershipInfo.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 a- nullitem.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withInitialspublic UserFileMembershipInfo.Builder withInitials(java.lang.String initials) Set value for optional field.- Overrides:
- withInitialsin class- UserMembershipInfo.Builder
- Parameters:
- initials- Never set.
- Returns:
- this builder
 
 - 
withIsInheritedpublic UserFileMembershipInfo.Builder withIsInherited(java.lang.Boolean isInherited) Set value for optional field.If left unset or set to null, defaults tofalse.- Overrides:
- withIsInheritedin class- UserMembershipInfo.Builder
- Parameters:
- isInherited- True if the member has access from a parent folder. Defaults to- falsewhen set to- null.
- Returns:
- this builder
 
 - 
buildpublic UserFileMembershipInfo build() Builds an instance ofUserFileMembershipInfoconfigured with this builder's values- Overrides:
- buildin class- UserMembershipInfo.Builder
- Returns:
- new instance of UserFileMembershipInfo
 
 
- 
 
-