Class DriveItem

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class DriveItem extends BaseItem implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • DriveItem

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

    • createFromDiscriminatorValue

      @Nonnull public static DriveItem 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 DriveItem
    • getAnalytics

      @Nullable public ItemAnalytics getAnalytics()
      Gets the analytics property value. Analytics about the view activities that took place on this item.
      Returns:
      a ItemAnalytics
    • getAudio

      @Nullable public Audio getAudio()
      Gets the audio property value. Audio metadata, if the item is an audio file. Read-only. Read-only. Only on OneDrive Personal.
      Returns:
      a Audio
    • getBundle

      @Nullable public Bundle getBundle()
      Gets the bundle property value. Bundle metadata, if the item is a bundle. Read-only.
      Returns:
      a Bundle
    • getChildren

      @Nullable public List<DriveItem> getChildren()
      Gets the children property value. Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable.
      Returns:
      a List<DriveItem>
    • getContent

      @Nullable public byte[] getContent()
      Gets the content property value. The content stream, if the item represents a file.
      Returns:
      a
      invalid reference
      byte[]
    • getCTag

      @Nullable public String getCTag()
      Gets the cTag property value. An eTag for the content of the item. This eTag isn't changed if only the metadata is changed. Note This property isn't returned if the item is a folder. Read-only.
      Returns:
      a String
    • getDeleted

      @Nullable public Deleted getDeleted()
      Gets the deleted property value. Information about the deleted state of the item. Read-only.
      Returns:
      a Deleted
    • 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>>
    • getFile

      @Nullable public File getFile()
      Gets the file property value. File metadata, if the item is a file. Read-only.
      Returns:
      a File
    • getFileSystemInfo

      @Nullable public FileSystemInfo getFileSystemInfo()
      Gets the fileSystemInfo property value. File system information on client. Read-write.
      Returns:
      a FileSystemInfo
    • getFolder

      @Nullable public Folder getFolder()
      Gets the folder property value. Folder metadata, if the item is a folder. Read-only.
      Returns:
      a Folder
    • getImage

      @Nullable public Image getImage()
      Gets the image property value. Image metadata, if the item is an image. Read-only.
      Returns:
      a Image
    • getListItem

      @Nullable public ListItem getListItem()
      Gets the listItem property value. For drives in SharePoint, the associated document library list item. Read-only. Nullable.
      Returns:
      a ListItem
    • getLocation

      @Nullable public GeoCoordinates getLocation()
      Gets the location property value. Location metadata, if the item has location data. Read-only.
      Returns:
      a GeoCoordinates
    • getMalware

      @Nullable public Malware getMalware()
      Gets the malware property value. Malware metadata, if the item was detected to contain malware. Read-only.
      Returns:
      a Malware
    • getPackage

      @Nullable public PackageEscaped getPackage()
      Gets the package property value. If present, indicates that this item is a package instead of a folder or file. Packages are treated like files in some contexts and folders in others. Read-only.
      Returns:
      a PackageEscaped
    • getPendingOperations

      @Nullable public PendingOperations getPendingOperations()
      Gets the pendingOperations property value. If present, indicates that one or more operations that might affect the state of the driveItem are pending completion. Read-only.
      Returns:
      a PendingOperations
    • getPermissions

      @Nullable public List<Permission> getPermissions()
      Gets the permissions property value. The set of permissions for the item. Read-only. Nullable.
      Returns:
      a List<Permission>
    • getPhoto

      @Nullable public Photo getPhoto()
      Gets the photo property value. Photo metadata, if the item is a photo. Read-only.
      Returns:
      a Photo
    • getPublication

      @Nullable public PublicationFacet getPublication()
      Gets the publication property value. Provides information about the published or checked-out state of an item, in locations that support such actions. This property isn't returned by default. Read-only.
      Returns:
      a PublicationFacet
    • getRemoteItem

      @Nullable public RemoteItem getRemoteItem()
      Gets the remoteItem property value. Remote item data, if the item is shared from a drive other than the one being accessed. Read-only.
      Returns:
      a RemoteItem
    • getRetentionLabel

      @Nullable public ItemRetentionLabel getRetentionLabel()
      Gets the retentionLabel property value. Information about retention label and settings enforced on the driveItem. Read-write.
      Returns:
      a ItemRetentionLabel
    • getRoot

      @Nullable public Root getRoot()
      Gets the root property value. If this property is non-null, it indicates that the driveItem is the top-most driveItem in the drive.
      Returns:
      a Root
    • getSearchResult

      @Nullable public SearchResult getSearchResult()
      Gets the searchResult property value. Search metadata, if the item is from a search result. Read-only.
      Returns:
      a SearchResult
    • getShared

      @Nullable public Shared getShared()
      Gets the shared property value. Indicates that the item was shared with others and provides information about the shared state of the item. Read-only.
      Returns:
      a Shared
    • getSharepointIds

      @Nullable public SharepointIds getSharepointIds()
      Gets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
      Returns:
      a SharepointIds
    • getSize

      @Nullable public Long getSize()
      Gets the size property value. Size of the item in bytes. Read-only.
      Returns:
      a Long
    • getSpecialFolder

      @Nullable public SpecialFolder getSpecialFolder()
      Gets the specialFolder property value. If the current item is also available as a special folder, this facet is returned. Read-only.
      Returns:
      a SpecialFolder
    • getSubscriptions

      @Nullable public List<Subscription> getSubscriptions()
      Gets the subscriptions property value. The set of subscriptions on the item. Only supported on the root of a drive.
      Returns:
      a List<Subscription>
    • getThumbnails

      @Nullable public List<ThumbnailSet> getThumbnails()
      Gets the thumbnails property value. Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable.
      Returns:
      a List<ThumbnailSet>
    • getVersions

      @Nullable public List<DriveItemVersion> getVersions()
      Gets the versions property value. The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable.
      Returns:
      a List<DriveItemVersion>
    • getVideo

      @Nullable public Video getVideo()
      Gets the video property value. Video metadata, if the item is a video. Read-only.
      Returns:
      a Video
    • getWebDavUrl

      @Nullable public String getWebDavUrl()
      Gets the webDavUrl property value. WebDAV compatible URL for the item.
      Returns:
      a String
    • getWorkbook

      @Nullable public Workbook getWorkbook()
      Gets the workbook property value. For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable.
      Returns:
      a Workbook
    • 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
    • setAnalytics

      public void setAnalytics(@Nullable ItemAnalytics value)
      Sets the analytics property value. Analytics about the view activities that took place on this item.
      Parameters:
      value - Value to set for the analytics property.
    • setAudio

      public void setAudio(@Nullable Audio value)
      Sets the audio property value. Audio metadata, if the item is an audio file. Read-only. Read-only. Only on OneDrive Personal.
      Parameters:
      value - Value to set for the audio property.
    • setBundle

      public void setBundle(@Nullable Bundle value)
      Sets the bundle property value. Bundle metadata, if the item is a bundle. Read-only.
      Parameters:
      value - Value to set for the bundle property.
    • setChildren

      public void setChildren(@Nullable List<DriveItem> value)
      Sets the children property value. Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable.
      Parameters:
      value - Value to set for the children property.
    • setContent

      public void setContent(@Nullable byte[] value)
      Sets the content property value. The content stream, if the item represents a file.
      Parameters:
      value - Value to set for the content property.
    • setCTag

      public void setCTag(@Nullable String value)
      Sets the cTag property value. An eTag for the content of the item. This eTag isn't changed if only the metadata is changed. Note This property isn't returned if the item is a folder. Read-only.
      Parameters:
      value - Value to set for the cTag property.
    • setDeleted

      public void setDeleted(@Nullable Deleted value)
      Sets the deleted property value. Information about the deleted state of the item. Read-only.
      Parameters:
      value - Value to set for the deleted property.
    • setFile

      public void setFile(@Nullable File value)
      Sets the file property value. File metadata, if the item is a file. Read-only.
      Parameters:
      value - Value to set for the file property.
    • setFileSystemInfo

      public void setFileSystemInfo(@Nullable FileSystemInfo value)
      Sets the fileSystemInfo property value. File system information on client. Read-write.
      Parameters:
      value - Value to set for the fileSystemInfo property.
    • setFolder

      public void setFolder(@Nullable Folder value)
      Sets the folder property value. Folder metadata, if the item is a folder. Read-only.
      Parameters:
      value - Value to set for the folder property.
    • setImage

      public void setImage(@Nullable Image value)
      Sets the image property value. Image metadata, if the item is an image. Read-only.
      Parameters:
      value - Value to set for the image property.
    • setListItem

      public void setListItem(@Nullable ListItem value)
      Sets the listItem property value. For drives in SharePoint, the associated document library list item. Read-only. Nullable.
      Parameters:
      value - Value to set for the listItem property.
    • setLocation

      public void setLocation(@Nullable GeoCoordinates value)
      Sets the location property value. Location metadata, if the item has location data. Read-only.
      Parameters:
      value - Value to set for the location property.
    • setMalware

      public void setMalware(@Nullable Malware value)
      Sets the malware property value. Malware metadata, if the item was detected to contain malware. Read-only.
      Parameters:
      value - Value to set for the malware property.
    • setPackage

      public void setPackage(@Nullable PackageEscaped value)
      Sets the package property value. If present, indicates that this item is a package instead of a folder or file. Packages are treated like files in some contexts and folders in others. Read-only.
      Parameters:
      value - Value to set for the package property.
    • setPendingOperations

      public void setPendingOperations(@Nullable PendingOperations value)
      Sets the pendingOperations property value. If present, indicates that one or more operations that might affect the state of the driveItem are pending completion. Read-only.
      Parameters:
      value - Value to set for the pendingOperations property.
    • setPermissions

      public void setPermissions(@Nullable List<Permission> value)
      Sets the permissions property value. The set of permissions for the item. Read-only. Nullable.
      Parameters:
      value - Value to set for the permissions property.
    • setPhoto

      public void setPhoto(@Nullable Photo value)
      Sets the photo property value. Photo metadata, if the item is a photo. Read-only.
      Parameters:
      value - Value to set for the photo property.
    • setPublication

      public void setPublication(@Nullable PublicationFacet value)
      Sets the publication property value. Provides information about the published or checked-out state of an item, in locations that support such actions. This property isn't returned by default. Read-only.
      Parameters:
      value - Value to set for the publication property.
    • setRemoteItem

      public void setRemoteItem(@Nullable RemoteItem value)
      Sets the remoteItem property value. Remote item data, if the item is shared from a drive other than the one being accessed. Read-only.
      Parameters:
      value - Value to set for the remoteItem property.
    • setRetentionLabel

      public void setRetentionLabel(@Nullable ItemRetentionLabel value)
      Sets the retentionLabel property value. Information about retention label and settings enforced on the driveItem. Read-write.
      Parameters:
      value - Value to set for the retentionLabel property.
    • setRoot

      public void setRoot(@Nullable Root value)
      Sets the root property value. If this property is non-null, it indicates that the driveItem is the top-most driveItem in the drive.
      Parameters:
      value - Value to set for the root property.
    • setSearchResult

      public void setSearchResult(@Nullable SearchResult value)
      Sets the searchResult property value. Search metadata, if the item is from a search result. Read-only.
      Parameters:
      value - Value to set for the searchResult property.
    • setShared

      public void setShared(@Nullable Shared value)
      Sets the shared property value. Indicates that the item was shared with others and provides information about the shared state of the item. Read-only.
      Parameters:
      value - Value to set for the shared property.
    • setSharepointIds

      public void setSharepointIds(@Nullable SharepointIds value)
      Sets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
      Parameters:
      value - Value to set for the sharepointIds property.
    • setSize

      public void setSize(@Nullable Long value)
      Sets the size property value. Size of the item in bytes. Read-only.
      Parameters:
      value - Value to set for the size property.
    • setSpecialFolder

      public void setSpecialFolder(@Nullable SpecialFolder value)
      Sets the specialFolder property value. If the current item is also available as a special folder, this facet is returned. Read-only.
      Parameters:
      value - Value to set for the specialFolder property.
    • setSubscriptions

      public void setSubscriptions(@Nullable List<Subscription> value)
      Sets the subscriptions property value. The set of subscriptions on the item. Only supported on the root of a drive.
      Parameters:
      value - Value to set for the subscriptions property.
    • setThumbnails

      public void setThumbnails(@Nullable List<ThumbnailSet> value)
      Sets the thumbnails property value. Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable.
      Parameters:
      value - Value to set for the thumbnails property.
    • setVersions

      public void setVersions(@Nullable List<DriveItemVersion> value)
      Sets the versions property value. The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable.
      Parameters:
      value - Value to set for the versions property.
    • setVideo

      public void setVideo(@Nullable Video value)
      Sets the video property value. Video metadata, if the item is a video. Read-only.
      Parameters:
      value - Value to set for the video property.
    • setWebDavUrl

      public void setWebDavUrl(@Nullable String value)
      Sets the webDavUrl property value. WebDAV compatible URL for the item.
      Parameters:
      value - Value to set for the webDavUrl property.
    • setWorkbook

      public void setWorkbook(@Nullable Workbook value)
      Sets the workbook property value. For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable.
      Parameters:
      value - Value to set for the workbook property.