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 SummaryFields Modifier and Type Field Description protected longallocatedprotected longusedprotected longuserWithinTeamSpaceAllocatedprotected MemberSpaceLimitTypeuserWithinTeamSpaceLimitTypeprotected longuserWithinTeamSpaceUsedCached
 - 
Constructor SummaryConstructors Constructor Description TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, MemberSpaceLimitType userWithinTeamSpaceLimitType, long userWithinTeamSpaceUsedCached)
 - 
Method SummaryAll 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- 
usedprotected final long used 
 - 
allocatedprotected final long allocated 
 - 
userWithinTeamSpaceAllocatedprotected final long userWithinTeamSpaceAllocated 
 - 
userWithinTeamSpaceLimitTypeprotected final MemberSpaceLimitType userWithinTeamSpaceLimitType 
 - 
userWithinTeamSpaceUsedCachedprotected final long userWithinTeamSpaceUsedCached 
 
- 
 - 
Constructor Detail- 
TeamSpaceAllocationpublic 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 be- null.
- 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- 
getUsedpublic long getUsed() The total space currently used by the user's team (bytes).- Returns:
- value for this field.
 
 - 
getAllocatedpublic long getAllocated() The total space allocated to the user's team (bytes).- Returns:
- value for this field.
 
 - 
getUserWithinTeamSpaceAllocatedpublic 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.
 
 - 
getUserWithinTeamSpaceLimitTypepublic 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.
 
 - 
getUserWithinTeamSpaceUsedCachedpublic long getUserWithinTeamSpaceUsedCached() An accurate cached calculation of a team member's total space usage (bytes).- Returns:
- value for this field.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic 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
 
 
- 
 
-