java.lang.Object
com.amilesend.onedrive.resource.drive.Quota

public class Quota extends Object
Describes details about storage space for a drive.

API Documentation.

  • Method Details

    • builder

      public static Quota.QuotaBuilder builder()
    • getTotal

      public long getTotal()
      Total storage space in bytes.
    • getUsed

      public long getUsed()
      Used storage space in bytes.
    • getRemaining

      public long getRemaining()
      Remaining storage space in bytes.
    • getDeleted

      public long getDeleted()
      Storage space used by deleted items (recycle bin) in bytes.
    • getState

      public String getState()
      The storage space state. Valid values include:
      • normal
      • nearing
      • critical
      • exceeded
    • getFileCount

      public long getFileCount()
      The total number of files (not applicable to personal OneDrive accounts).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object