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.
  • Field Details

    • members

      @Nullable protected final List<GroupMemberInfo> 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 be null.
      groupId - Must not be null.
      groupManagementType - Who is allowed to manage the group. Must not be null.
      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 a null item.
      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 be null.
      groupId - Must not be null.
      groupManagementType - Who is allowed to manage the group. Must not be null.
      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

      @Nonnull public String getGroupName()
      Overrides:
      getGroupName in class GroupSummary
      Returns:
      value for this field, never null.
    • getGroupId

      @Nonnull public String getGroupId()
      Overrides:
      getGroupId in class GroupSummary
      Returns:
      value for this field, never null.
    • getGroupManagementType

      @Nonnull public GroupManagementType getGroupManagementType()
      Who is allowed to manage the group.
      Overrides:
      getGroupManagementType in class GroupSummary
      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

      @Nullable public String getGroupExternalId()
      External ID of group. This is an arbitrary ID that an admin can attach to a group.
      Overrides:
      getGroupExternalId in class GroupSummary
      Returns:
      value for this field, or null if not present.
    • getMemberCount

      @Nullable public Long getMemberCount()
      The number of members in the group.
      Overrides:
      getMemberCount in class GroupSummary
      Returns:
      value for this field, or null if not present.
    • getMembers

      @Nullable public List<GroupMemberInfo> getMembers()
      List of group members.
      Returns:
      value for this field, or null if 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 be null.
      groupId - Must not be null.
      groupManagementType - Who is allowed to manage the group. Must not be null.
      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:
      hashCode in class GroupSummary
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class GroupSummary
    • toString

      public String toString()
      Overrides:
      toString in class GroupSummary
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Overrides:
      toStringMultiline in class GroupSummary
      Returns:
      Formatted, multiline String representation of this object