Class GetStorageReport

java.lang.Object
com.dropbox.core.v2.team.BaseDfbReport
com.dropbox.core.v2.team.GetStorageReport

public class GetStorageReport extends BaseDfbReport
Storage Report Result. Each of the items in the storage report is an array of values, one value per day. If there is no data for a day, then the value will be None.
  • Field Details

    • totalUsage

      @Nonnull protected final List<Long> totalUsage
    • sharedUsage

      @Nonnull protected final List<Long> sharedUsage
    • unsharedUsage

      @Nonnull protected final List<Long> unsharedUsage
    • sharedFolders

      @Nonnull protected final List<Long> sharedFolders
    • memberStorageMap

      @Nonnull protected final List<List<StorageBucket>> memberStorageMap
  • Constructor Details

    • GetStorageReport

      public GetStorageReport(@Nonnull String startDate, @Nonnull List<Long> totalUsage, @Nonnull List<Long> sharedUsage, @Nonnull List<Long> unsharedUsage, @Nonnull List<Long> sharedFolders, @Nonnull List<List<StorageBucket>> memberStorageMap)
      Storage Report Result. Each of the items in the storage report is an array of values, one value per day. If there is no data for a day, then the value will be None.
      Parameters:
      startDate - First date present in the results as 'YYYY-MM-DD' or None. Must not be null.
      totalUsage - Sum of the shared, unshared, and datastore usages, for each day. Must not contain a null item and not be null.
      sharedUsage - Array of the combined size (bytes) of team members' shared folders, for each day. Must not contain a null item and not be null.
      unsharedUsage - Array of the combined size (bytes) of team members' root namespaces, for each day. Must not contain a null item and not be null.
      sharedFolders - Array of the number of shared folders owned by team members, for each day. Must not contain a null item and not be null.
      memberStorageMap - Array of storage summaries of team members' account sizes. Each storage summary is an array of key, value pairs, where each pair describes a storage bucket. The key indicates the upper bound of the bucket and the value is the number of users in that bucket. There is one such summary per day. If there is no data for a day, the storage summary will be empty. Must not contain a null item and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getStartDate

      @Nonnull public String getStartDate()
      First date present in the results as 'YYYY-MM-DD' or None.
      Overrides:
      getStartDate in class BaseDfbReport
      Returns:
      value for this field, never null.
    • getTotalUsage

      @Nonnull public List<Long> getTotalUsage()
      Sum of the shared, unshared, and datastore usages, for each day.
      Returns:
      value for this field, never null.
    • getSharedUsage

      @Nonnull public List<Long> getSharedUsage()
      Array of the combined size (bytes) of team members' shared folders, for each day.
      Returns:
      value for this field, never null.
    • getUnsharedUsage

      @Nonnull public List<Long> getUnsharedUsage()
      Array of the combined size (bytes) of team members' root namespaces, for each day.
      Returns:
      value for this field, never null.
    • getSharedFolders

      @Nonnull public List<Long> getSharedFolders()
      Array of the number of shared folders owned by team members, for each day.
      Returns:
      value for this field, never null.
    • getMemberStorageMap

      @Nonnull public List<List<StorageBucket>> getMemberStorageMap()
      Array of storage summaries of team members' account sizes. Each storage summary is an array of key, value pairs, where each pair describes a storage bucket. The key indicates the upper bound of the bucket and the value is the number of users in that bucket. There is one such summary per day. If there is no data for a day, the storage summary will be empty.
      Returns:
      value for this field, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseDfbReport
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class BaseDfbReport
    • toString

      public String toString()
      Overrides:
      toString in class BaseDfbReport
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Overrides:
      toStringMultiline in class BaseDfbReport
      Returns:
      Formatted, multiline String representation of this object