public static class UserMembershipInfo.Builder extends MembershipInfo.Builder
UserMembershipInfo
.Modifier and Type | Field and Description |
---|---|
protected UserInfo |
user |
accessType, initials, isInherited, permissions
Modifier | Constructor and Description |
---|---|
protected |
Builder(AccessLevel accessType,
UserInfo user) |
Modifier and Type | Method and Description |
---|---|
UserMembershipInfo |
build()
Builds an instance of
UserMembershipInfo configured with this
builder's values |
UserMembershipInfo.Builder |
withInitials(java.lang.String initials)
Set value for optional field.
|
UserMembershipInfo.Builder |
withIsInherited(java.lang.Boolean isInherited)
Set value for optional field.
|
UserMembershipInfo.Builder |
withPermissions(java.util.List<MemberPermission> permissions)
Set value for optional field.
|
protected final UserInfo user
protected Builder(AccessLevel accessType, UserInfo user)
public UserMembershipInfo.Builder withPermissions(java.util.List<MemberPermission> permissions)
withPermissions
in class MembershipInfo.Builder
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 null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserMembershipInfo.Builder withInitials(java.lang.String initials)
withInitials
in class MembershipInfo.Builder
initials
- Never set.public UserMembershipInfo.Builder withIsInherited(java.lang.Boolean isInherited)
If left unset or set to null
, defaults to false
.
withIsInherited
in class MembershipInfo.Builder
isInherited
- True if the member has access from a parent
folder. Defaults to false
when set to null
.public UserMembershipInfo build()
UserMembershipInfo
configured with this
builder's valuesbuild
in class MembershipInfo.Builder
UserMembershipInfo