Class TeamSpaceAllocation


  • public class TeamSpaceAllocation
    extends java.lang.Object
    • Field Detail

      • used

        protected final long used
      • allocated

        protected final long allocated
      • userWithinTeamSpaceAllocated

        protected final long userWithinTeamSpaceAllocated
      • userWithinTeamSpaceLimitType

        @Nonnull
        protected final MemberSpaceLimitType userWithinTeamSpaceLimitType
      • userWithinTeamSpaceUsedCached

        protected final long userWithinTeamSpaceUsedCached
    • Constructor Detail

      • 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 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

      • 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

        @Nonnull
        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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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