public static class GroupInfo.Builder extends GroupSummary.Builder
GroupInfo.| Modifier and Type | Field and Description |
|---|---|
protected GroupType |
groupType |
protected boolean |
isOwner |
protected boolean |
sameTeam |
groupExternalId, groupId, groupName, memberCount| Modifier | Constructor and Description |
|---|---|
protected |
Builder(String groupName,
String groupId,
GroupType groupType,
boolean isOwner,
boolean sameTeam) |
| Modifier and Type | Method and Description |
|---|---|
GroupInfo |
build()
Builds an instance of
GroupInfo configured with this
builder's values |
GroupInfo.Builder |
withGroupExternalId(String groupExternalId)
Set value for optional field.
|
GroupInfo.Builder |
withMemberCount(Long memberCount)
Set value for optional field.
|
protected final GroupType groupType
protected final boolean isOwner
protected final boolean sameTeam
public GroupInfo.Builder withGroupExternalId(String groupExternalId)
withGroupExternalId in class GroupSummary.BuildergroupExternalId - External ID of group. This is an arbitrary ID
that an admin can attach to a group.public GroupInfo.Builder withMemberCount(Long memberCount)
withMemberCount in class GroupSummary.BuildermemberCount - The number of members in the group.public GroupInfo build()
GroupInfo configured with this
builder's valuesbuild in class GroupSummary.BuilderGroupInfo