public class GroupSummary
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GroupSummary.Builder
Builder for
GroupSummary . |
static class |
GroupSummary.Serializer
For internal use only.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
groupExternalId |
protected java.lang.String |
groupId |
protected GroupManagementType |
groupManagementType |
protected java.lang.String |
groupName |
protected java.lang.Long |
memberCount |
Constructor and Description |
---|
GroupSummary(java.lang.String groupName,
java.lang.String groupId,
GroupManagementType groupManagementType)
Information about a group.
|
GroupSummary(java.lang.String groupName,
java.lang.String groupId,
GroupManagementType groupManagementType,
java.lang.String groupExternalId,
java.lang.Long memberCount)
Information about a group.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
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.
|
int |
hashCode() |
static GroupSummary.Builder |
newBuilder(java.lang.String groupName,
java.lang.String groupId,
GroupManagementType groupManagementType)
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.
|
protected final java.lang.String groupName
protected final java.lang.String groupId
protected final java.lang.String groupExternalId
protected final java.lang.Long memberCount
protected final GroupManagementType groupManagementType
public GroupSummary(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, java.lang.String groupExternalId, java.lang.Long memberCount)
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
.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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GroupSummary(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType)
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getGroupName()
null
.public java.lang.String getGroupId()
null
.public GroupManagementType getGroupManagementType()
null
.public java.lang.String getGroupExternalId()
null
if not present.public java.lang.Long getMemberCount()
null
if not present.public static GroupSummary.Builder newBuilder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType)
groupName
- Must not be null
.groupId
- Must not be null
.groupManagementType
- Who is allowed to manage the group. Must not
be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.