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