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 java.util.List<GroupMemberInfo> |
members |
groupExternalId, groupId, groupManagementType, groupName, memberCount| Constructor and Description |
|---|
GroupFullInfo(java.lang.String groupName,
java.lang.String groupId,
GroupManagementType groupManagementType,
long created)
Full description of a group.
|
GroupFullInfo(java.lang.String groupName,
java.lang.String groupId,
GroupManagementType groupManagementType,
long created,
java.lang.String groupExternalId,
java.lang.Long memberCount,
java.util.List<GroupMemberInfo> members)
Full description of a group.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getCreated()
The group creation time as a UTC timestamp in milliseconds since the Unix
epoch.
|
java.lang.String |
getGroupExternalId()
External ID of group.
|
java.lang.String |
getGroupId() |
GroupManagementType |
getGroupManagementType()
Who is allowed to manage the group.
|
java.lang.String |
getGroupName() |
java.lang.Long |
getMemberCount()
The number of members in the group.
|
java.util.List<GroupMemberInfo> |
getMembers()
List of group members.
|
int |
hashCode() |
static GroupFullInfo.Builder |
newBuilder(java.lang.String groupName,
java.lang.String groupId,
GroupManagementType groupManagementType,
long created)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
newBuilderprotected final java.util.List<GroupMemberInfo> members
protected final long created
public GroupFullInfo(java.lang.String groupName,
java.lang.String groupId,
GroupManagementType groupManagementType,
long created,
java.lang.String groupExternalId,
java.lang.Long memberCount,
java.util.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.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public GroupFullInfo(java.lang.String groupName,
java.lang.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.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public java.lang.String getGroupName()
getGroupName in class GroupSummarynull.public java.lang.String getGroupId()
getGroupId in class GroupSummarynull.public GroupManagementType getGroupManagementType()
getGroupManagementType in class GroupSummarynull.public long getCreated()
public java.lang.String getGroupExternalId()
getGroupExternalId in class GroupSummarynull if not present.public java.lang.Long getMemberCount()
getMemberCount in class GroupSummarynull if not present.public java.util.List<GroupMemberInfo> getMembers()
null if not present.public static GroupFullInfo.Builder newBuilder(java.lang.String groupName, java.lang.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.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public int hashCode()
hashCode in class GroupSummarypublic boolean equals(java.lang.Object obj)
equals in class GroupSummarypublic java.lang.String toString()
toString in class GroupSummarypublic java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline in class GroupSummary