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(String initials)
Set value for optional field.
|
UserMembershipInfo.Builder |
withIsInherited(Boolean isInherited)
Set value for optional field.
|
UserMembershipInfo.Builder |
withPermissions(List<MemberPermission> permissions)
Set value for optional field.
|
protected final UserInfo user
protected Builder(AccessLevel accessType, UserInfo user)
public UserMembershipInfo.Builder withPermissions(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.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserMembershipInfo.Builder withInitials(String initials)
withInitials
in class MembershipInfo.Builder
initials
- Suggested name initials for a member.public UserMembershipInfo.Builder withIsInherited(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