Package com.dropbox.core.v2.teamcommon
Class GroupSummary
java.lang.Object
com.dropbox.core.v2.teamcommon.GroupSummary
- Direct Known Subclasses:
GroupFullInfo,GroupInfo
Information about a group.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forGroupSummary.static classFor internal use only. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final GroupManagementTypeprotected final Stringprotected final Long -
Constructor Summary
ConstructorsConstructorDescriptionGroupSummary(String groupName, String groupId, GroupManagementType groupManagementType) Information about a group.GroupSummary(String groupName, String groupId, GroupManagementType groupManagementType, String groupExternalId, Long memberCount) Information about a group. -
Method Summary
Modifier and TypeMethodDescriptionbooleanExternal ID of group.Who is allowed to manage the group.The number of members in the group.inthashCode()static GroupSummary.BuildernewBuilder(String groupName, String groupId, GroupManagementType groupManagementType) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
groupName
-
groupId
-
groupExternalId
-
memberCount
-
groupManagementType
-
-
Constructor Details
-
GroupSummary
public GroupSummary(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, @Nullable String groupExternalId, @Nullable 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 benull.groupId- Must not benull.groupManagementType- Who is allowed to manage the group. Must not benull.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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
GroupSummary
public GroupSummary(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType) Information about a group.The default values for unset fields will be used.
- Parameters:
groupName- Must not benull.groupId- Must not benull.groupManagementType- Who is allowed to manage the group. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getGroupName
- Returns:
- value for this field, never
null.
-
getGroupId
- Returns:
- value for this field, never
null.
-
getGroupManagementType
Who is allowed to manage the group.- Returns:
- value for this field, never
null.
-
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.
-
getMemberCount
The number of members in the group.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static GroupSummary.Builder newBuilder(String groupName, String groupId, GroupManagementType groupManagementType) Returns a new builder for creating an instance of this class.- Parameters:
groupName- Must not benull.groupId- Must not benull.groupManagementType- Who is allowed to manage the group. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-