Class Quota.QuotaBuilder

java.lang.Object
com.amilesend.onedrive.resource.drive.Quota.QuotaBuilder
Enclosing class:
Quota

public static class Quota.QuotaBuilder extends Object
  • Method Details

    • total

      public Quota.QuotaBuilder total(long total)
      Total storage space in bytes.
      Returns:
      this.
    • used

      public Quota.QuotaBuilder used(long used)
      Used storage space in bytes.
      Returns:
      this.
    • remaining

      public Quota.QuotaBuilder remaining(long remaining)
      Remaining storage space in bytes.
      Returns:
      this.
    • deleted

      public Quota.QuotaBuilder deleted(long deleted)
      Storage space used by deleted items (recycle bin) in bytes.
      Returns:
      this.
    • state

      public Quota.QuotaBuilder state(String state)
      The storage space state. Valid values include:
      • normal
      • nearing
      • critical
      • exceeded
      Returns:
      this.
    • fileCount

      public Quota.QuotaBuilder fileCount(long fileCount)
      The total number of files (not applicable to personal OneDrive accounts).
      Returns:
      this.
    • build

      public Quota build()
    • toString

      public String toString()
      Overrides:
      toString in class Object