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, groupManagementType, groupName, memberCount
Modifier | Constructor and Description |
---|---|
protected |
Builder(String groupName,
String groupId,
GroupManagementType groupManagementType,
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
protected Builder(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isOwner, boolean sameTeam)
public GroupInfo.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 GroupInfo.Builder withMemberCount(Long memberCount)
withMemberCount
in class GroupSummary.Builder
memberCount
- The number of members in the group.public GroupInfo build()
GroupInfo
configured with this
builder's valuesbuild
in class GroupSummary.Builder
GroupInfo