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 Summary
Fields Modifier and Type Field Description protected PlatformType
platformType
protected java.util.Date
timeLastSeen
-
Fields inherited from class com.dropbox.core.v2.sharing.UserMembershipInfo.Builder
user
-
Fields inherited from class com.dropbox.core.v2.sharing.MembershipInfo.Builder
accessType, initials, isInherited, permissions
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(AccessLevel accessType, UserInfo user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserFileMembershipInfo
build()
Builds an instance ofUserFileMembershipInfo
configured with this builder's valuesUserFileMembershipInfo.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.
-
-
-
Field Detail
-
timeLastSeen
protected java.util.Date timeLastSeen
-
platformType
protected PlatformType platformType
-
-
Constructor Detail
-
Builder
protected Builder(AccessLevel accessType, UserInfo user)
-
-
Method Detail
-
withTimeLastSeen
public 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, if they have.- Returns:
- this builder
-
withPlatformType
public 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
-
withPermissions
public UserFileMembershipInfo.Builder withPermissions(java.util.List<MemberPermission> permissions)
Set value for optional field.- Overrides:
withPermissions
in 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 anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withInitials
public UserFileMembershipInfo.Builder withInitials(java.lang.String initials)
Set value for optional field.- Overrides:
withInitials
in classUserMembershipInfo.Builder
- Parameters:
initials
- Never set.- Returns:
- this builder
-
withIsInherited
public UserFileMembershipInfo.Builder withIsInherited(java.lang.Boolean isInherited)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Overrides:
withIsInherited
in classUserMembershipInfo.Builder
- Parameters:
isInherited
- True if the member has access from a parent folder. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
build
public UserFileMembershipInfo build()
Builds an instance ofUserFileMembershipInfo
configured with this builder's values- Overrides:
build
in classUserMembershipInfo.Builder
- Returns:
- new instance of
UserFileMembershipInfo
-
-