Package com.microsoft.graph.models
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 Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QuotacreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.Gets the deleted property value.The deserialization information for the current modelGets the @odata.type property value.Gets the remaining property value.getState()Gets the state property value.Gets the storagePlanInformation property value.getTotal()Gets the total property value.getUsed()Gets the used property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidsetDeleted(Long value) Sets the deleted property value.voidsetOdataType(String value) Sets the @odata.type property value.voidsetRemaining(Long value) Sets the remaining property value.voidSets the state property value.voidSets the storagePlanInformation property value.voidSets the total property value.voidSets the used property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
Quota
public Quota()Instantiates a newQuotaand 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
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getBackingStore
@Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()Gets the backingStore property value. Stores model information.- Specified by:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
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 -
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getRemaining
Gets the remaining property value. Total space remaining before reaching the capacity limit, in bytes. Read-only.- Returns:
- a
Long
-
getState
Gets the state property value. Enumeration value that indicates the state of the storage space. Read-only.- Returns:
- a
String
-
getStoragePlanInformation
Gets the storagePlanInformation property value. Information about the drive's storage quota plans. Only in Personal OneDrive.- Returns:
- a
StoragePlanInformation
-
getTotal
Gets the total property value. Total allowed storage space, in bytes. Read-only.- Returns:
- a
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
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
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
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setRemaining
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
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
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
Sets the total property value. Total allowed storage space, in bytes. Read-only.- Parameters:
value- Value to set for the total property.
-
setUsed
Sets the used property value. Total space used, in bytes. Read-only.- Parameters:
value- Value to set for the used property.
-