public class AlphaGroupFullInfo extends AlphaGroupSummary
Modifier and Type | Class and Description |
---|---|
static class |
AlphaGroupFullInfo.Builder
Builder for
AlphaGroupFullInfo . |
Modifier and Type | Field and Description |
---|---|
protected long |
created |
protected List<GroupMemberInfo> |
members |
groupManagementType
groupExternalId, groupId, groupName, memberCount
Constructor and Description |
---|
AlphaGroupFullInfo(String groupName,
String groupId,
GroupManagementType groupManagementType,
long created)
Full description of a group.
|
AlphaGroupFullInfo(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.
|
List<GroupMemberInfo> |
getMembers()
List of group members.
|
int |
hashCode() |
static AlphaGroupFullInfo.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.
|
getGroupManagementType, newBuilder
getGroupExternalId, getGroupId, getGroupName, getMemberCount, newBuilder
protected final List<GroupMemberInfo> members
protected final long created
public AlphaGroupFullInfo(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 AlphaGroupFullInfo(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 List<GroupMemberInfo> getMembers()
null
if not present.public long getCreated()
public static AlphaGroupFullInfo.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 AlphaGroupSummary
public boolean equals(Object obj)
equals
in class AlphaGroupSummary
public String toString()
toString
in class AlphaGroupSummary
public String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class AlphaGroupSummary