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 |
Constructor and Description |
---|
TeamSpaceAllocation(long used,
long allocated,
long userWithinTeamSpaceAllocated,
MemberSpaceLimitType userWithinTeamSpaceLimitType) |
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).
|
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
public TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, MemberSpaceLimitType userWithinTeamSpaceLimitType)
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
.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 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.