public static class UserFileMembershipInfo.Builder extends UserMembershipInfo.Builder
UserFileMembershipInfo.| Modifier and Type | Field and Description |
|---|---|
protected PlatformType |
platformType |
protected java.util.Date |
timeLastSeen |
useraccessType, initials, isInherited, permissions| Modifier | Constructor and Description |
|---|---|
protected |
Builder(AccessLevel accessType,
UserInfo user) |
| Modifier and Type | Method and Description |
|---|---|
UserFileMembershipInfo |
build()
Builds an instance of
UserFileMembershipInfo configured with
this builder's values |
UserFileMembershipInfo.Builder |
withInitials(java.lang.String initials)
Set value for optional field.
|
UserFileMembershipInfo.Builder |
withIsInherited(java.lang.Boolean isInherited)
Set value for optional field.
|
UserFileMembershipInfo.Builder |
withPermissions(java.util.List<MemberPermission> permissions)
Set value for optional field.
|
UserFileMembershipInfo.Builder |
withPlatformType(PlatformType platformType)
Set value for optional field.
|
UserFileMembershipInfo.Builder |
withTimeLastSeen(java.util.Date timeLastSeen)
Set value for optional field.
|
protected java.util.Date timeLastSeen
protected PlatformType platformType
protected Builder(AccessLevel accessType, UserInfo user)
public UserFileMembershipInfo.Builder withTimeLastSeen(java.util.Date timeLastSeen)
timeLastSeen - The UTC timestamp of when the user has last seen
the content, if they have.public UserFileMembershipInfo.Builder withPlatformType(PlatformType platformType)
platformType - The platform on which the user has last seen the
content, or unknown.public UserFileMembershipInfo.Builder withPermissions(java.util.List<MemberPermission> permissions)
withPermissions in class UserMembershipInfo.Builderpermissions - The permissions that requesting user has on this
member. The set of permissions corresponds to the MemberActions
in the request. Must not contain a null item.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public UserFileMembershipInfo.Builder withInitials(java.lang.String initials)
withInitials in class UserMembershipInfo.Builderinitials - Never set.public UserFileMembershipInfo.Builder withIsInherited(java.lang.Boolean isInherited)
If left unset or set to null, defaults to false.
withIsInherited in class UserMembershipInfo.BuilderisInherited - True if the member has access from a parent
folder. Defaults to false when set to null.public UserFileMembershipInfo build()
UserFileMembershipInfo configured with
this builder's valuesbuild in class UserMembershipInfo.BuilderUserFileMembershipInfo