Class GroupSummary

java.lang.Object
com.dropbox.core.v2.teamcommon.GroupSummary
Direct Known Subclasses:
GroupFullInfo, GroupInfo

public class GroupSummary extends Object
Information about a group.
  • Field Details

    • groupName

      @Nonnull protected final String groupName
    • groupId

      @Nonnull protected final String groupId
    • groupExternalId

      @Nullable protected final String groupExternalId
    • memberCount

      @Nullable protected final Long memberCount
    • groupManagementType

      @Nonnull protected final GroupManagementType 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 be null.
      groupId - Must not be null.
      groupManagementType - Who is allowed to manage the group. Must not be null.
      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 be null.
      groupId - Must not be null.
      groupManagementType - Who is allowed to manage the group. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getGroupName

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

      @Nonnull public 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 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 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(String groupName, String groupId, GroupManagementType groupManagementType)
      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.
      Returns:
      builder for this class.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

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

      public 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