Package com.microsoft.graph.models
Class Drive
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.BaseItem
com.microsoft.graph.models.Drive
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Drive
extends BaseItem
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DrivecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the bundles property value.Gets the driveType property value.The deserialization information for the current modelGets the following property value.getItems()Gets the items property value.getList()Gets the list property value.getOwner()Gets the owner property value.getQuota()Gets the quota property value.getRoot()Gets the root property value.Gets the sharePointIds property value.Gets the special property value.Gets the system property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetBundles(List<DriveItem> value) Sets the bundles property value.voidsetDriveType(String value) Sets the driveType property value.voidsetFollowing(List<DriveItem> value) Sets the following property value.voidSets the items property value.voidSets the list property value.voidsetOwner(IdentitySet value) Sets the owner property value.voidSets the quota property value.voidSets the root property value.voidsetSharePointIds(SharepointIds value) Sets the sharePointIds property value.voidsetSpecial(List<DriveItem> value) Sets the special property value.voidsetSystem(SystemFacet value) Sets the system property value.Methods inherited from class com.microsoft.graph.models.BaseItem
getCreatedBy, getCreatedByUser, getCreatedDateTime, getDescription, getETag, getLastModifiedBy, getLastModifiedByUser, getLastModifiedDateTime, getName, getParentReference, getWebUrl, setCreatedBy, setCreatedByUser, setCreatedDateTime, setDescription, setETag, setLastModifiedBy, setLastModifiedByUser, setLastModifiedDateTime, setName, setParentReference, setWebUrlMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Drive
public Drive()Instantiates a newDriveand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Drive 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
Drive
-
getBundles
Gets the bundles property value. Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. -
getDriveType
Gets the driveType property value. Describes the type of drive represented by this resource. OneDrive personal drives return personal. OneDrive for Business returns business. SharePoint document libraries return documentLibrary. Read-only.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classBaseItem- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFollowing
Gets the following property value. The list of items the user is following. Only in OneDrive for Business. -
getItems
Gets the items property value. All items contained in the drive. Read-only. Nullable. -
getList
Gets the list property value. For drives in SharePoint, the underlying document library list. Read-only. Nullable.- Returns:
- a
List
-
getOwner
Gets the owner property value. Optional. The user account that owns the drive. Read-only.- Returns:
- a
IdentitySet
-
getQuota
Gets the quota property value. Optional. Information about the drive's storage space quota. Read-only.- Returns:
- a
Quota
-
getRoot
Gets the root property value. The root folder of the drive. Read-only.- Returns:
- a
DriveItem
-
getSpecial
Gets the special property value. Collection of common folders available in OneDrive. Read-only. Nullable. -
getSystem
Gets the system property value. If present, indicates that it's a system-managed drive. Read-only.- Returns:
- a
SystemFacet
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setBundles
Sets the bundles property value. Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive.- Parameters:
value- Value to set for the bundles property.
-
setDriveType
Sets the driveType property value. Describes the type of drive represented by this resource. OneDrive personal drives return personal. OneDrive for Business returns business. SharePoint document libraries return documentLibrary. Read-only.- Parameters:
value- Value to set for the driveType property.
-
setFollowing
Sets the following property value. The list of items the user is following. Only in OneDrive for Business.- Parameters:
value- Value to set for the following property.
-
setItems
Sets the items property value. All items contained in the drive. Read-only. Nullable.- Parameters:
value- Value to set for the items property.
-
setList
Sets the list property value. For drives in SharePoint, the underlying document library list. Read-only. Nullable.- Parameters:
value- Value to set for the list property.
-
setOwner
Sets the owner property value. Optional. The user account that owns the drive. Read-only.- Parameters:
value- Value to set for the owner property.
-
setQuota
Sets the quota property value. Optional. Information about the drive's storage space quota. Read-only.- Parameters:
value- Value to set for the quota property.
-
setRoot
Sets the root property value. The root folder of the drive. Read-only.- Parameters:
value- Value to set for the root property.
-
setSpecial
Sets the special property value. Collection of common folders available in OneDrive. Read-only. Nullable.- Parameters:
value- Value to set for the special property.
-
setSystem
Sets the system property value. If present, indicates that it's a system-managed drive. Read-only.- Parameters:
value- Value to set for the system property.
-