Class 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
  • Constructor Details

    • Drive

      public Drive()
      Instantiates a new Drive and 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

      @Nullable public List<DriveItem> getBundles()
      Gets the bundles property value. Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive.
      Returns:
      a List<DriveItem>
    • getDriveType

      @Nullable public String 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:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class BaseItem
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFollowing

      @Nullable public List<DriveItem> getFollowing()
      Gets the following property value. The list of items the user is following. Only in OneDrive for Business.
      Returns:
      a List<DriveItem>
    • getItems

      @Nullable public List<DriveItem> getItems()
      Gets the items property value. All items contained in the drive. Read-only. Nullable.
      Returns:
      a List<DriveItem>
    • getList

      @Nullable public List getList()
      Gets the list property value. For drives in SharePoint, the underlying document library list. Read-only. Nullable.
      Returns:
      a List
    • getOwner

      @Nullable public IdentitySet getOwner()
      Gets the owner property value. Optional. The user account that owns the drive. Read-only.
      Returns:
      a IdentitySet
    • getQuota

      @Nullable public Quota getQuota()
      Gets the quota property value. Optional. Information about the drive's storage space quota. Read-only.
      Returns:
      a Quota
    • getRoot

      @Nullable public DriveItem getRoot()
      Gets the root property value. The root folder of the drive. Read-only.
      Returns:
      a DriveItem
    • getSharePointIds

      @Nullable public SharepointIds getSharePointIds()
      Gets the sharePointIds property value. The sharePointIds property
      Returns:
      a SharepointIds
    • getSpecial

      @Nullable public List<DriveItem> getSpecial()
      Gets the special property value. Collection of common folders available in OneDrive. Read-only. Nullable.
      Returns:
      a List<DriveItem>
    • getSystem

      @Nullable public SystemFacet 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class BaseItem
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setBundles

      public void setBundles(@Nullable List<DriveItem> value)
      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

      public void setDriveType(@Nullable String value)
      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

      public void setFollowing(@Nullable List<DriveItem> value)
      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

      public void setItems(@Nullable List<DriveItem> value)
      Sets the items property value. All items contained in the drive. Read-only. Nullable.
      Parameters:
      value - Value to set for the items property.
    • setList

      public void setList(@Nullable List value)
      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

      public void setOwner(@Nullable IdentitySet value)
      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

      public void setQuota(@Nullable Quota value)
      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

      public void setRoot(@Nullable DriveItem value)
      Sets the root property value. The root folder of the drive. Read-only.
      Parameters:
      value - Value to set for the root property.
    • setSharePointIds

      public void setSharePointIds(@Nullable SharepointIds value)
      Sets the sharePointIds property value. The sharePointIds property
      Parameters:
      value - Value to set for the sharePointIds property.
    • setSpecial

      public void setSpecial(@Nullable List<DriveItem> value)
      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

      public void setSystem(@Nullable SystemFacet value)
      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.