Package com.dropbox.core.v2.users
Class TeamSpaceAllocation
java.lang.Object
com.dropbox.core.v2.users.TeamSpaceAllocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longprotected final longprotected final longprotected final MemberSpaceLimitTypeprotected final long -
Constructor Summary
ConstructorsConstructorDescriptionTeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, MemberSpaceLimitType userWithinTeamSpaceLimitType, long userWithinTeamSpaceUsedCached) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe total space allocated to the user's team (bytes).longgetUsed()The total space currently used by the user's team (bytes).longThe 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).The type of the space limit imposed on the team member (off, alert_only, stop_sync).longAn accurate cached calculation of a team member's total space usage (bytes).inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
used
protected final long used -
allocated
protected final long allocated -
userWithinTeamSpaceAllocated
protected final long userWithinTeamSpaceAllocated -
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 benull.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
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() -
equals
-
toString
-
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
-