Package com.dropbox.core.v2.teamcommon
Class GroupSummary
- java.lang.Object
- 
- com.dropbox.core.v2.teamcommon.GroupSummary
 
- 
- Direct Known Subclasses:
- GroupFullInfo,- GroupInfo
 
 public class GroupSummary extends java.lang.ObjectInformation about a group.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGroupSummary.BuilderBuilder forGroupSummary.static classGroupSummary.SerializerFor internal use only.
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringgroupExternalIdprotected java.lang.StringgroupIdprotected GroupManagementTypegroupManagementTypeprotected java.lang.StringgroupNameprotected java.lang.LongmemberCount
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetGroupExternalId()External ID of group.java.lang.StringgetGroupId()GroupManagementTypegetGroupManagementType()Who is allowed to manage the group.java.lang.StringgetGroupName()java.lang.LonggetMemberCount()The number of members in the group.inthashCode()static GroupSummary.BuildernewBuilder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
groupNameprotected final java.lang.String groupName 
 - 
groupIdprotected final java.lang.String groupId 
 - 
groupExternalIdprotected final java.lang.String groupExternalId 
 - 
memberCountprotected final java.lang.Long memberCount 
 - 
groupManagementTypeprotected final GroupManagementType groupManagementType 
 
- 
 - 
Constructor Detail- 
GroupSummarypublic GroupSummary(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, java.lang.String groupExternalId, java.lang.Long memberCount)Information about a group.Use newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.teamcommon.GroupManagementType)to create instances of this class without specifying values for all optional fields.- Parameters:
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
GroupSummarypublic GroupSummary(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType)Information about a group.The default values for unset fields will be used. - Parameters:
- groupName- Must not be- null.
- groupId- Must not be- null.
- groupManagementType- Who is allowed to manage the group. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getGroupNamepublic java.lang.String getGroupName() - Returns:
- value for this field, never null.
 
 - 
getGroupIdpublic java.lang.String getGroupId() - Returns:
- value for this field, never null.
 
 - 
getGroupManagementTypepublic GroupManagementType getGroupManagementType() Who is allowed to manage the group.- Returns:
- value for this field, never null.
 
 - 
getGroupExternalIdpublic java.lang.String getGroupExternalId() External ID of group. This is an arbitrary ID that an admin can attach to a group.- Returns:
- value for this field, or nullif not present.
 
 - 
getMemberCountpublic java.lang.Long getMemberCount() The number of members in the group.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic 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.- Parameters:
- groupName- Must not be- null.
- groupId- Must not be- null.
- groupManagementType- Who is allowed to manage the group. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-