Package com.microsoft.graph.models
Class DriveItem
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.BaseItem
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DriveItemcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the analytics property value.getAudio()Gets the audio property value.Gets the bundle property value.Gets the children property value.byte[]Gets the content property value.getCTag()Gets the cTag property value.Gets the deleted property value.The deserialization information for the current modelgetFile()Gets the file property value.Gets the fileSystemInfo property value.Gets the folder property value.getImage()Gets the image property value.Gets the listItem property value.Gets the location property value.Gets the malware property value.Gets the package property value.Gets the pendingOperations property value.Gets the permissions property value.getPhoto()Gets the photo property value.Gets the publication property value.Gets the remoteItem property value.Gets the retentionLabel property value.getRoot()Gets the root property value.Gets the searchResult property value.Gets the shared property value.Gets the sharepointIds property value.getSize()Gets the size property value.Gets the specialFolder property value.Gets the subscriptions property value.Gets the thumbnails property value.Gets the versions property value.getVideo()Gets the video property value.Gets the webDavUrl property value.Gets the workbook property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAnalytics(ItemAnalytics value) Sets the analytics property value.voidSets the audio property value.voidSets the bundle property value.voidsetChildren(List<DriveItem> value) Sets the children property value.voidsetContent(byte[] value) Sets the content property value.voidSets the cTag property value.voidsetDeleted(Deleted value) Sets the deleted property value.voidSets the file property value.voidsetFileSystemInfo(FileSystemInfo value) Sets the fileSystemInfo property value.voidSets the folder property value.voidSets the image property value.voidsetListItem(ListItem value) Sets the listItem property value.voidsetLocation(GeoCoordinates value) Sets the location property value.voidsetMalware(Malware value) Sets the malware property value.voidsetPackage(PackageEscaped value) Sets the package property value.voidSets the pendingOperations property value.voidsetPermissions(List<Permission> value) Sets the permissions property value.voidSets the photo property value.voidsetPublication(PublicationFacet value) Sets the publication property value.voidsetRemoteItem(RemoteItem value) Sets the remoteItem property value.voidSets the retentionLabel property value.voidSets the root property value.voidsetSearchResult(SearchResult value) Sets the searchResult property value.voidSets the shared property value.voidsetSharepointIds(SharepointIds value) Sets the sharepointIds property value.voidSets the size property value.voidsetSpecialFolder(SpecialFolder value) Sets the specialFolder property value.voidsetSubscriptions(List<Subscription> value) Sets the subscriptions property value.voidsetThumbnails(List<ThumbnailSet> value) Sets the thumbnails property value.voidsetVersions(List<DriveItemVersion> value) Sets the versions property value.voidSets the video property value.voidsetWebDavUrl(String value) Sets the webDavUrl property value.voidsetWorkbook(Workbook value) Sets the workbook 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
-
DriveItem
public DriveItem()Instantiates a newDriveItemand 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
Gets the analytics property value. Analytics about the view activities that took place on this item.- Returns:
- a
ItemAnalytics
-
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
Gets the bundle property value. Bundle metadata, if the item is a bundle. Read-only.- Returns:
- a
Bundle
-
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. -
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
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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classBaseItem- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFile
Gets the file property value. File metadata, if the item is a file. Read-only.- Returns:
- a
File
-
getFileSystemInfo
Gets the fileSystemInfo property value. File system information on client. Read-write.- Returns:
- a
FileSystemInfo
-
getFolder
Gets the folder property value. Folder metadata, if the item is a folder. Read-only.- Returns:
- a
Folder
-
getImage
Gets the image property value. Image metadata, if the item is an image. Read-only.- Returns:
- a
Image
-
getListItem
Gets the listItem property value. For drives in SharePoint, the associated document library list item. Read-only. Nullable.- Returns:
- a
ListItem
-
getLocation
Gets the location property value. Location metadata, if the item has location data. Read-only.- Returns:
- a
GeoCoordinates
-
getMalware
Gets the malware property value. Malware metadata, if the item was detected to contain malware. Read-only.- Returns:
- a
Malware
-
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
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
Gets the permissions property value. The set of permissions for the item. Read-only. Nullable.- Returns:
- a
List<Permission>
-
getPhoto
Gets the photo property value. Photo metadata, if the item is a photo. Read-only.- Returns:
- a
Photo
-
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
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
Gets the retentionLabel property value. Information about retention label and settings enforced on the driveItem. Read-write.- Returns:
- a
ItemRetentionLabel
-
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
Gets the searchResult property value. Search metadata, if the item is from a search result. Read-only.- Returns:
- a
SearchResult
-
getSize
Gets the size property value. Size of the item in bytes. Read-only.- Returns:
- a
Long
-
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
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
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
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
Gets the video property value. Video metadata, if the item is a video. Read-only.- Returns:
- a
Video
-
getWebDavUrl
Gets the webDavUrl property value. WebDAV compatible URL for the item.- Returns:
- a
String
-
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 -
setAnalytics
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
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
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
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
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
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
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
Sets the fileSystemInfo property value. File system information on client. Read-write.- Parameters:
value- Value to set for the fileSystemInfo property.
-
setFolder
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
-
setSize
Sets the size property value. Size of the item in bytes. Read-only.- Parameters:
value- Value to set for the size property.
-
setSpecialFolder
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
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
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
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
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
Sets the webDavUrl property value. WebDAV compatible URL for the item.- Parameters:
value- Value to set for the webDavUrl property.
-
setWorkbook
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.
-