Package com.dropbox.core.v2.users
Class TeamSpaceAllocation
- java.lang.Object
-
- com.dropbox.core.v2.users.TeamSpaceAllocation
-
public class TeamSpaceAllocation extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected longallocatedprotected longusedprotected longuserWithinTeamSpaceAllocatedprotected MemberSpaceLimitTypeuserWithinTeamSpaceLimitTypeprotected longuserWithinTeamSpaceUsedCached
-
Constructor Summary
Constructors Constructor Description TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, MemberSpaceLimitType userWithinTeamSpaceLimitType, long userWithinTeamSpaceUsedCached)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetAllocated()The total space allocated to the user's team (bytes).longgetUsed()The total space currently used by the user's team (bytes).longgetUserWithinTeamSpaceAllocated()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).MemberSpaceLimitTypegetUserWithinTeamSpaceLimitType()The type of the space limit imposed on the team member (off, alert_only, stop_sync).longgetUserWithinTeamSpaceUsedCached()An accurate cached calculation of a team member's total space usage (bytes).inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
used
protected final long used
-
allocated
protected final long allocated
-
userWithinTeamSpaceAllocated
protected final long userWithinTeamSpaceAllocated
-
userWithinTeamSpaceLimitType
protected final MemberSpaceLimitType userWithinTeamSpaceLimitType
-
userWithinTeamSpaceUsedCached
protected final long userWithinTeamSpaceUsedCached
-
-
Constructor Detail
-
TeamSpaceAllocation
public TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, 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 benull.userWithinTeamSpaceUsedCached- An accurate cached calculation of a team member's total space usage (bytes).- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
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
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public java.lang.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
-
-