Class Quota

java.lang.Object
com.microsoft.graph.models.Quota
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Quota extends Object implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
  • Field Details

    • backingStore

      @Nonnull protected com.microsoft.kiota.store.BackingStore backingStore
      Stores model information.
  • Constructor Details

    • Quota

      public Quota()
      Instantiates a new Quota and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Quota createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a Quota
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getBackingStore

      @Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()
      Gets the backingStore property value. Stores model information.
      Specified by:
      getBackingStore in interface com.microsoft.kiota.store.BackedModel
      Returns:
      a BackingStore
    • getDeleted

      @Nullable public Long getDeleted()
      Gets the deleted property value. Total space consumed by files in the recycle bin, in bytes. Read-only.
      Returns:
      a Long
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getOdataType

      @Nullable public String getOdataType()
      Gets the @odata.type property value. The OdataType property
      Returns:
      a String
    • getRemaining

      @Nullable public Long getRemaining()
      Gets the remaining property value. Total space remaining before reaching the capacity limit, in bytes. Read-only.
      Returns:
      a Long
    • getState

      @Nullable public String getState()
      Gets the state property value. Enumeration value that indicates the state of the storage space. Read-only.
      Returns:
      a String
    • getStoragePlanInformation

      @Nullable public StoragePlanInformation getStoragePlanInformation()
      Gets the storagePlanInformation property value. Information about the drive's storage quota plans. Only in Personal OneDrive.
      Returns:
      a StoragePlanInformation
    • getTotal

      @Nullable public Long getTotal()
      Gets the total property value. Total allowed storage space, in bytes. Read-only.
      Returns:
      a Long
    • getUsed

      @Nullable public Long getUsed()
      Gets the used property value. Total space used, in bytes. Read-only.
      Returns:
      a Long
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      value - Value to set for the AdditionalData property.
    • setBackingStore

      public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value)
      Sets the backingStore property value. Stores model information.
      Parameters:
      value - Value to set for the backingStore property.
    • setDeleted

      public void setDeleted(@Nullable Long value)
      Sets the deleted property value. Total space consumed by files in the recycle bin, in bytes. Read-only.
      Parameters:
      value - Value to set for the deleted property.
    • setOdataType

      public void setOdataType(@Nullable String value)
      Sets the @odata.type property value. The OdataType property
      Parameters:
      value - Value to set for the @odata.type property.
    • setRemaining

      public void setRemaining(@Nullable Long value)
      Sets the remaining property value. Total space remaining before reaching the capacity limit, in bytes. Read-only.
      Parameters:
      value - Value to set for the remaining property.
    • setState

      public void setState(@Nullable String value)
      Sets the state property value. Enumeration value that indicates the state of the storage space. Read-only.
      Parameters:
      value - Value to set for the state property.
    • setStoragePlanInformation

      public void setStoragePlanInformation(@Nullable StoragePlanInformation value)
      Sets the storagePlanInformation property value. Information about the drive's storage quota plans. Only in Personal OneDrive.
      Parameters:
      value - Value to set for the storagePlanInformation property.
    • setTotal

      public void setTotal(@Nullable Long value)
      Sets the total property value. Total allowed storage space, in bytes. Read-only.
      Parameters:
      value - Value to set for the total property.
    • setUsed

      public void setUsed(@Nullable Long value)
      Sets the used property value. Total space used, in bytes. Read-only.
      Parameters:
      value - Value to set for the used property.