public class GroupFullInfo extends GroupSummary
Modifier and Type | Class and Description |
---|---|
static class |
GroupFullInfo.Builder
Builder for
GroupFullInfo . |
Modifier and Type | Field and Description |
---|---|
protected long |
created |
protected List<GroupMemberInfo> |
members |
groupExternalId, groupId, groupManagementType, groupName, memberCount
Constructor and Description |
---|
GroupFullInfo(String groupName,
String groupId,
GroupManagementType groupManagementType,
long created)
Full description of a group.
|
GroupFullInfo(String groupName,
String groupId,
GroupManagementType groupManagementType,
long created,
String groupExternalId,
Long memberCount,
List<GroupMemberInfo> members)
Full description of a group.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getCreated()
The group creation time as a UTC timestamp in milliseconds since the Unix
epoch.
|
String |
getGroupExternalId()
External ID of group.
|
String |
getGroupId() |
GroupManagementType |
getGroupManagementType()
Who is allowed to manage the group.
|
String |
getGroupName() |
Long |
getMemberCount()
The number of members in the group.
|
List<GroupMemberInfo> |
getMembers()
List of group members.
|
int |
hashCode() |
static GroupFullInfo.Builder |
newBuilder(String groupName,
String groupId,
GroupManagementType groupManagementType,
long created)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
newBuilder
protected final List<GroupMemberInfo> members
protected final long created
public GroupFullInfo(String groupName, String groupId, GroupManagementType groupManagementType, long created, String groupExternalId, Long memberCount, List<GroupMemberInfo> members)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
groupName
- Must not be null
.groupId
- Must not be null
.groupManagementType
- Who is allowed to manage the group. Must not
be null
.created
- The group creation time as a UTC timestamp in
milliseconds since the Unix epoch.groupExternalId
- External ID of group. This is an arbitrary ID
that an admin can attach to a group.memberCount
- The number of members in the group.members
- List of group members. Must not contain a null
item.IllegalArgumentException
- If any argument does not meet its
preconditions.public GroupFullInfo(String groupName, String groupId, GroupManagementType groupManagementType, long created)
The default values for unset fields will be used.
groupName
- Must not be null
.groupId
- Must not be null
.groupManagementType
- Who is allowed to manage the group. Must not
be null
.created
- The group creation time as a UTC timestamp in
milliseconds since the Unix epoch.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getGroupName()
getGroupName
in class GroupSummary
null
.public String getGroupId()
getGroupId
in class GroupSummary
null
.public GroupManagementType getGroupManagementType()
getGroupManagementType
in class GroupSummary
null
.public long getCreated()
public String getGroupExternalId()
getGroupExternalId
in class GroupSummary
null
if not present.public Long getMemberCount()
getMemberCount
in class GroupSummary
null
if not present.public List<GroupMemberInfo> getMembers()
null
if not present.public static GroupFullInfo.Builder newBuilder(String groupName, String groupId, GroupManagementType groupManagementType, long created)
groupName
- Must not be null
.groupId
- Must not be null
.groupManagementType
- Who is allowed to manage the group. Must not
be null
.created
- The group creation time as a UTC timestamp in
milliseconds since the Unix epoch.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class GroupSummary
public boolean equals(Object obj)
equals
in class GroupSummary
public String toString()
toString
in class GroupSummary
public String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class GroupSummary