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(java.lang.String initials)
Set value for optional field.
|
GroupMembershipInfo.Builder |
withIsInherited(java.lang.Boolean isInherited)
Set value for optional field.
|
GroupMembershipInfo.Builder |
withPermissions(java.util.List<MemberPermission> permissions)
Set value for optional field.
|
protected final GroupInfo group
protected Builder(AccessLevel accessType, GroupInfo group)
public GroupMembershipInfo.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 GroupMembershipInfo.Builder withInitials(java.lang.String initials)
withInitials
in class MembershipInfo.Builder
initials
- Never set.public GroupMembershipInfo.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 GroupMembershipInfo build()
GroupMembershipInfo
configured with
this builder's valuesbuild
in class MembershipInfo.Builder
GroupMembershipInfo