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 long
allocated
protected long
used
protected long
userWithinTeamSpaceAllocated
protected MemberSpaceLimitType
userWithinTeamSpaceLimitType
protected long
userWithinTeamSpaceUsedCached
-
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 boolean
equals(java.lang.Object obj)
long
getAllocated()
The total space allocated to the user's team (bytes).long
getUsed()
The total space currently used by the user's team (bytes).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).MemberSpaceLimitType
getUserWithinTeamSpaceLimitType()
The type of the space limit imposed on the team member (off, alert_only, stop_sync).long
getUserWithinTeamSpaceUsedCached()
An accurate cached calculation of a team member's total space usage (bytes).int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-