Package com.dropbox.core.v2.team
Class GroupFullInfo
- java.lang.Object
-
- com.dropbox.core.v2.teamcommon.GroupSummary
-
- com.dropbox.core.v2.team.GroupFullInfo
-
public class GroupFullInfo extends GroupSummary
Full description of a group.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupFullInfo.Builder
Builder forGroupFullInfo
.
-
Field Summary
Fields Modifier and Type Field Description protected long
created
protected java.util.List<GroupMemberInfo>
members
-
Fields inherited from class com.dropbox.core.v2.teamcommon.GroupSummary
groupExternalId, groupId, groupManagementType, groupName, memberCount
-
-
Constructor Summary
Constructors Constructor Description GroupFullInfo(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, long created)
Full description of a group.GroupFullInfo(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, long created, java.lang.String groupExternalId, java.lang.Long memberCount, java.util.List<GroupMemberInfo> members)
Full description of a group.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
long
getCreated()
The group creation time as a UTC timestamp in milliseconds since the Unix epoch.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.java.util.List<GroupMemberInfo>
getMembers()
List of group members.int
hashCode()
static GroupFullInfo.Builder
newBuilder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, long created)
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.-
Methods inherited from class com.dropbox.core.v2.teamcommon.GroupSummary
newBuilder
-
-
-
-
Field Detail
-
members
protected final java.util.List<GroupMemberInfo> members
-
created
protected final long created
-
-
Constructor Detail
-
GroupFullInfo
public GroupFullInfo(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, long created, java.lang.String groupExternalId, java.lang.Long memberCount, java.util.List<GroupMemberInfo> members)
Full description of a group.Use
newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.teamcommon.GroupManagementType,long)
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
.created
- The group creation time as a UTC timestamp in milliseconds since the Unix epoch.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.members
- List of group members. Must not contain anull
item.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
GroupFullInfo
public GroupFullInfo(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, long created)
Full description of 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
.created
- The group creation time as a UTC timestamp in milliseconds since the Unix epoch.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getGroupName
public java.lang.String getGroupName()
- Overrides:
getGroupName
in classGroupSummary
- Returns:
- value for this field, never
null
.
-
getGroupId
public java.lang.String getGroupId()
- Overrides:
getGroupId
in classGroupSummary
- Returns:
- value for this field, never
null
.
-
getGroupManagementType
public GroupManagementType getGroupManagementType()
Who is allowed to manage the group.- Overrides:
getGroupManagementType
in classGroupSummary
- Returns:
- value for this field, never
null
.
-
getCreated
public long getCreated()
The group creation time as a UTC timestamp in milliseconds since the Unix epoch.- Returns:
- value for this field.
-
getGroupExternalId
public java.lang.String getGroupExternalId()
External ID of group. This is an arbitrary ID that an admin can attach to a group.- Overrides:
getGroupExternalId
in classGroupSummary
- Returns:
- value for this field, or
null
if not present.
-
getMemberCount
public java.lang.Long getMemberCount()
The number of members in the group.- Overrides:
getMemberCount
in classGroupSummary
- Returns:
- value for this field, or
null
if not present.
-
getMembers
public java.util.List<GroupMemberInfo> getMembers()
List of group members.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static GroupFullInfo.Builder newBuilder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, long created)
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
.created
- The group creation time as a UTC timestamp in milliseconds since the Unix epoch.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGroupSummary
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classGroupSummary
-
toString
public java.lang.String toString()
- Overrides:
toString
in classGroupSummary
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultiline
in classGroupSummary
- Returns:
- Formatted, multiline String representation of this object
-
-