Class TeamSpaceAllocation

java.lang.Object
com.dropbox.core.v2.users.TeamSpaceAllocation

public class TeamSpaceAllocation extends Object
  • Field Details

    • used

      protected final long used
    • allocated

      protected final long allocated
    • userWithinTeamSpaceAllocated

      protected final long userWithinTeamSpaceAllocated
    • userWithinTeamSpaceLimitType

      @Nonnull protected final MemberSpaceLimitType userWithinTeamSpaceLimitType
    • userWithinTeamSpaceUsedCached

      protected final long userWithinTeamSpaceUsedCached
  • Constructor Details

    • TeamSpaceAllocation

      public TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, @Nonnull MemberSpaceLimitType userWithinTeamSpaceLimitType, long userWithinTeamSpaceUsedCached)
      Parameters:
      used - The total space currently used by the user's team (bytes).
      allocated - The total space allocated to the user's team (bytes).
      userWithinTeamSpaceAllocated - The total space allocated to the user within its team allocated space (0 means that no restriction is imposed on the user's quota within its team).
      userWithinTeamSpaceLimitType - The type of the space limit imposed on the team member (off, alert_only, stop_sync). Must not be null.
      userWithinTeamSpaceUsedCached - An accurate cached calculation of a team member's total space usage (bytes).
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getUsed

      public long getUsed()
      The total space currently used by the user's team (bytes).
      Returns:
      value for this field.
    • getAllocated

      public long getAllocated()
      The total space allocated to the user's team (bytes).
      Returns:
      value for this field.
    • getUserWithinTeamSpaceAllocated

      public long getUserWithinTeamSpaceAllocated()
      The total space allocated to the user within its team allocated space (0 means that no restriction is imposed on the user's quota within its team).
      Returns:
      value for this field.
    • getUserWithinTeamSpaceLimitType

      @Nonnull public MemberSpaceLimitType getUserWithinTeamSpaceLimitType()
      The type of the space limit imposed on the team member (off, alert_only, stop_sync).
      Returns:
      value for this field, never null.
    • getUserWithinTeamSpaceUsedCached

      public long getUserWithinTeamSpaceUsedCached()
      An accurate cached calculation of a team member's total space usage (bytes).
      Returns:
      value for this field.
    • 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