public static class GroupFullInfo.Builder extends GroupSummary.Builder
GroupFullInfo
.Modifier and Type | Field and Description |
---|---|
protected long |
created |
protected List<GroupMemberInfo> |
members |
groupExternalId, groupId, groupManagementType, groupName, memberCount
Modifier | Constructor and Description |
---|---|
protected |
Builder(String groupName,
String groupId,
GroupManagementType groupManagementType,
long created) |
Modifier and Type | Method and Description |
---|---|
GroupFullInfo |
build()
Builds an instance of
GroupFullInfo configured with this
builder's values |
GroupFullInfo.Builder |
withGroupExternalId(String groupExternalId)
Set value for optional field.
|
GroupFullInfo.Builder |
withMemberCount(Long memberCount)
Set value for optional field.
|
GroupFullInfo.Builder |
withMembers(List<GroupMemberInfo> members)
Set value for optional field.
|
protected final long created
protected List<GroupMemberInfo> members
protected Builder(String groupName, String groupId, GroupManagementType groupManagementType, long created)
public GroupFullInfo.Builder withMembers(List<GroupMemberInfo> members)
members
- List of group members. Must not contain a null
item.IllegalArgumentException
- If any argument does not meet its
preconditions.public GroupFullInfo.Builder withGroupExternalId(String groupExternalId)
withGroupExternalId
in class GroupSummary.Builder
groupExternalId
- External ID of group. This is an arbitrary ID
that an admin can attach to a group.public GroupFullInfo.Builder withMemberCount(Long memberCount)
withMemberCount
in class GroupSummary.Builder
memberCount
- The number of members in the group.public GroupFullInfo build()
GroupFullInfo
configured with this
builder's valuesbuild
in class GroupSummary.Builder
GroupFullInfo