Package com.dropbox.core.v2.team
Class GroupFullInfo
java.lang.Object
com.dropbox.core.v2.teamcommon.GroupSummary
com.dropbox.core.v2.team.GroupFullInfo
Full description of a group.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.teamcommon.GroupSummary
groupExternalId, groupId, groupManagementType, groupName, memberCount -
Constructor Summary
ConstructorsConstructorDescriptionGroupFullInfo(String groupName, String groupId, GroupManagementType groupManagementType, long created) Full description of a group.GroupFullInfo(String groupName, String groupId, GroupManagementType groupManagementType, long created, String groupExternalId, Long memberCount, List<GroupMemberInfo> members) Full description of a group. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe group creation time as a UTC timestamp in milliseconds since the Unix epoch.External ID of group.Who is allowed to manage the group.The number of members in the group.List of group members.inthashCode()static GroupFullInfo.BuildernewBuilder(String groupName, String groupId, GroupManagementType groupManagementType, long created) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.teamcommon.GroupSummary
newBuilder
-
Field Details
-
members
-
created
protected final long created
-
-
Constructor Details
-
GroupFullInfo
public GroupFullInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, long created, @Nullable String groupExternalId, @Nullable Long memberCount, @Nullable 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 anullitem.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
GroupFullInfo
public GroupFullInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getGroupName
- Overrides:
getGroupNamein classGroupSummary- Returns:
- value for this field, never
null.
-
getGroupId
- Overrides:
getGroupIdin classGroupSummary- Returns:
- value for this field, never
null.
-
getGroupManagementType
Who is allowed to manage the group.- Overrides:
getGroupManagementTypein 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
External ID of group. This is an arbitrary ID that an admin can attach to a group.- Overrides:
getGroupExternalIdin classGroupSummary- Returns:
- value for this field, or
nullif not present.
-
getMemberCount
The number of members in the group.- Overrides:
getMemberCountin classGroupSummary- Returns:
- value for this field, or
nullif not present.
-
getMembers
List of group members.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static GroupFullInfo.Builder newBuilder(String groupName, 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classGroupSummary
-
equals
- Overrides:
equalsin classGroupSummary
-
toString
- Overrides:
toStringin classGroupSummary
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classGroupSummary- Returns:
- Formatted, multiline String representation of this object
-