public static class GroupFullInfo.Builder extends GroupSummary.Builder
GroupFullInfo
.Modifier and Type | Field and Description |
---|---|
protected long |
created |
protected java.util.List<GroupMemberInfo> |
members |
groupExternalId, groupId, groupManagementType, groupName, memberCount
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String groupName,
java.lang.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(java.lang.String groupExternalId)
Set value for optional field.
|
GroupFullInfo.Builder |
withMemberCount(java.lang.Long memberCount)
Set value for optional field.
|
GroupFullInfo.Builder |
withMembers(java.util.List<GroupMemberInfo> members)
Set value for optional field.
|
protected final long created
protected java.util.List<GroupMemberInfo> members
protected Builder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, long created)
public GroupFullInfo.Builder withMembers(java.util.List<GroupMemberInfo> members)
members
- List of group members. Must not contain a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GroupFullInfo.Builder withGroupExternalId(java.lang.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(java.lang.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