public class TeamSpaceAllocation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
allocated |
protected long |
used |
protected long |
userWithinTeamSpaceAllocated |
protected MemberSpaceLimitType |
userWithinTeamSpaceLimitType |
protected long |
userWithinTeamSpaceUsedCached |
Constructor and Description |
---|
TeamSpaceAllocation(long used,
long allocated,
long userWithinTeamSpaceAllocated,
MemberSpaceLimitType userWithinTeamSpaceLimitType,
long userWithinTeamSpaceUsedCached) |
Modifier and Type | Method and 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.
|
protected final long used
protected final long allocated
protected final long userWithinTeamSpaceAllocated
protected final MemberSpaceLimitType userWithinTeamSpaceLimitType
protected final long userWithinTeamSpaceUsedCached
public TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, MemberSpaceLimitType userWithinTeamSpaceLimitType, long userWithinTeamSpaceUsedCached)
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).java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public long getUsed()
public long getAllocated()
public long getUserWithinTeamSpaceAllocated()
public MemberSpaceLimitType getUserWithinTeamSpaceLimitType()
null
.public long getUserWithinTeamSpaceUsedCached()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.