public static class GroupMembershipInfo.Builder extends MembershipInfo.Builder
GroupMembershipInfo
.Modifier and Type | Field and Description |
---|---|
protected GroupInfo |
group |
accessType, initials, isInherited, permissions
Modifier | Constructor and Description |
---|---|
protected |
Builder(AccessLevel accessType,
GroupInfo group) |
Modifier and Type | Method and Description |
---|---|
GroupMembershipInfo |
build()
Builds an instance of
GroupMembershipInfo configured with
this builder's values |
GroupMembershipInfo.Builder |
withInitials(String initials)
Set value for optional field.
|
GroupMembershipInfo.Builder |
withIsInherited(Boolean isInherited)
Set value for optional field.
|
GroupMembershipInfo.Builder |
withPermissions(List<MemberPermission> permissions)
Set value for optional field.
|
protected final GroupInfo group
protected Builder(AccessLevel accessType, GroupInfo group)
public GroupMembershipInfo.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 GroupMembershipInfo.Builder withInitials(String initials)
withInitials
in class MembershipInfo.Builder
initials
- Suggested name initials for a member.public GroupMembershipInfo.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 GroupMembershipInfo build()
GroupMembershipInfo
configured with
this builder's valuesbuild
in class MembershipInfo.Builder
GroupMembershipInfo