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.Object
Information about a group.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupSummary.Builder
Builder forGroupSummary
.static class
GroupSummary.Serializer
For internal use only.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
groupName
@Nonnull protected final java.lang.String groupName
-
groupId
@Nonnull protected final java.lang.String groupId
-
groupExternalId
@Nullable protected final java.lang.String groupExternalId
-
memberCount
@Nullable protected final java.lang.Long memberCount
-
groupManagementType
@Nonnull protected final GroupManagementType groupManagementType
-
-
Constructor Detail
-
GroupSummary
public GroupSummary(@Nonnull java.lang.String groupName, @Nonnull java.lang.String groupId, @Nonnull GroupManagementType groupManagementType, @Nullable java.lang.String groupExternalId, @Nullable 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 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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
GroupSummary
public GroupSummary(@Nonnull java.lang.String groupName, @Nonnull java.lang.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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getGroupName
@Nonnull public java.lang.String getGroupName()
- Returns:
- value for this field, never
null
.
-
getGroupId
@Nonnull public java.lang.String getGroupId()
- Returns:
- value for this field, never
null
.
-
getGroupManagementType
@Nonnull public GroupManagementType getGroupManagementType()
Who is allowed to manage the group.- Returns:
- value for this field, never
null
.
-
getGroupExternalId
@Nullable public 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
null
if not present.
-
getMemberCount
@Nullable public java.lang.Long getMemberCount()
The number of members in the group.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public 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 benull
.groupId
- Must not benull
.groupManagementType
- Who is allowed to manage the group. Must not benull
.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public 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
-
-