Class MicrosoftGraphDriveItem


public final class MicrosoftGraphDriveItem extends MicrosoftGraphBaseItemInner
driveItem.
  • Constructor Details

    • MicrosoftGraphDriveItem

      public MicrosoftGraphDriveItem()
      Creates an instance of MicrosoftGraphDriveItem class.
  • Method Details

    • audio

      public MicrosoftGraphAudio audio()
      Get the audio property: audio.
      Returns:
      the audio value.
    • withAudio

      public MicrosoftGraphDriveItem withAudio(MicrosoftGraphAudio audio)
      Set the audio property: audio.
      Parameters:
      audio - the audio value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • content

      public byte[] content()
      Get the content property: The content stream, if the item represents a file.
      Returns:
      the content value.
    • withContent

      public MicrosoftGraphDriveItem withContent(byte[] content)
      Set the content property: The content stream, if the item represents a file.
      Parameters:
      content - the content value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • cTag

      public String cTag()
      Get the cTag property: An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only.
      Returns:
      the cTag value.
    • withCTag

      public MicrosoftGraphDriveItem withCTag(String cTag)
      Set the cTag property: An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only.
      Parameters:
      cTag - the cTag value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • deleted

      public MicrosoftGraphDeleted deleted()
      Get the deleted property: deleted.
      Returns:
      the deleted value.
    • withDeleted

      public MicrosoftGraphDriveItem withDeleted(MicrosoftGraphDeleted deleted)
      Set the deleted property: deleted.
      Parameters:
      deleted - the deleted value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • file

      public MicrosoftGraphFile file()
      Get the file property: file.
      Returns:
      the file value.
    • withFile

      Set the file property: file.
      Parameters:
      file - the file value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • fileSystemInfo

      public MicrosoftGraphFileSystemInfo fileSystemInfo()
      Get the fileSystemInfo property: fileSystemInfo.
      Returns:
      the fileSystemInfo value.
    • withFileSystemInfo

      public MicrosoftGraphDriveItem withFileSystemInfo(MicrosoftGraphFileSystemInfo fileSystemInfo)
      Set the fileSystemInfo property: fileSystemInfo.
      Parameters:
      fileSystemInfo - the fileSystemInfo value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • folder

      public MicrosoftGraphFolder folder()
      Get the folder property: folder.
      Returns:
      the folder value.
    • withFolder

      public MicrosoftGraphDriveItem withFolder(MicrosoftGraphFolder folder)
      Set the folder property: folder.
      Parameters:
      folder - the folder value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • image

      public MicrosoftGraphImage image()
      Get the image property: image.
      Returns:
      the image value.
    • withImage

      public MicrosoftGraphDriveItem withImage(MicrosoftGraphImage image)
      Set the image property: image.
      Parameters:
      image - the image value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • location

      public MicrosoftGraphGeoCoordinates location()
      Get the location property: geoCoordinates.
      Returns:
      the location value.
    • withLocation

      public MicrosoftGraphDriveItem withLocation(MicrosoftGraphGeoCoordinates location)
      Set the location property: geoCoordinates.
      Parameters:
      location - the location value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • packageProperty

      public MicrosoftGraphPackage packageProperty()
      Get the packageProperty property: package.
      Returns:
      the packageProperty value.
    • withPackageProperty

      public MicrosoftGraphDriveItem withPackageProperty(MicrosoftGraphPackage packageProperty)
      Set the packageProperty property: package.
      Parameters:
      packageProperty - the packageProperty value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • pendingOperations

      public MicrosoftGraphPendingOperations pendingOperations()
      Get the pendingOperations property: pendingOperations.
      Returns:
      the pendingOperations value.
    • withPendingOperations

      public MicrosoftGraphDriveItem withPendingOperations(MicrosoftGraphPendingOperations pendingOperations)
      Set the pendingOperations property: pendingOperations.
      Parameters:
      pendingOperations - the pendingOperations value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • photo

      public MicrosoftGraphPhoto photo()
      Get the photo property: photo.
      Returns:
      the photo value.
    • withPhoto

      public MicrosoftGraphDriveItem withPhoto(MicrosoftGraphPhoto photo)
      Set the photo property: photo.
      Parameters:
      photo - the photo value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • publication

      public MicrosoftGraphPublicationFacet publication()
      Get the publication property: publicationFacet.
      Returns:
      the publication value.
    • withPublication

      public MicrosoftGraphDriveItem withPublication(MicrosoftGraphPublicationFacet publication)
      Set the publication property: publicationFacet.
      Parameters:
      publication - the publication value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • remoteItem

      public MicrosoftGraphRemoteItem remoteItem()
      Get the remoteItem property: remoteItem.
      Returns:
      the remoteItem value.
    • withRemoteItem

      public MicrosoftGraphDriveItem withRemoteItem(MicrosoftGraphRemoteItem remoteItem)
      Set the remoteItem property: remoteItem.
      Parameters:
      remoteItem - the remoteItem value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • root

      public Map<String,Object> root()
      Get the root property: root.
      Returns:
      the root value.
    • withRoot

      public MicrosoftGraphDriveItem withRoot(Map<String,Object> root)
      Set the root property: root.
      Parameters:
      root - the root value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • searchResult

      public MicrosoftGraphSearchResult searchResult()
      Get the searchResult property: searchResult.
      Returns:
      the searchResult value.
    • withSearchResult

      public MicrosoftGraphDriveItem withSearchResult(MicrosoftGraphSearchResult searchResult)
      Set the searchResult property: searchResult.
      Parameters:
      searchResult - the searchResult value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • shared

      public MicrosoftGraphShared shared()
      Get the shared property: shared.
      Returns:
      the shared value.
    • withShared

      public MicrosoftGraphDriveItem withShared(MicrosoftGraphShared shared)
      Set the shared property: shared.
      Parameters:
      shared - the shared value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • sharepointIds

      public MicrosoftGraphSharepointIds sharepointIds()
      Get the sharepointIds property: sharepointIds.
      Returns:
      the sharepointIds value.
    • withSharepointIds

      public MicrosoftGraphDriveItem withSharepointIds(MicrosoftGraphSharepointIds sharepointIds)
      Set the sharepointIds property: sharepointIds.
      Parameters:
      sharepointIds - the sharepointIds value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • size

      public Long size()
      Get the size property: Size of the item in bytes. Read-only.
      Returns:
      the size value.
    • withSize

      public MicrosoftGraphDriveItem withSize(Long size)
      Set the size property: Size of the item in bytes. Read-only.
      Parameters:
      size - the size value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • specialFolder

      public MicrosoftGraphSpecialFolder specialFolder()
      Get the specialFolder property: specialFolder.
      Returns:
      the specialFolder value.
    • withSpecialFolder

      public MicrosoftGraphDriveItem withSpecialFolder(MicrosoftGraphSpecialFolder specialFolder)
      Set the specialFolder property: specialFolder.
      Parameters:
      specialFolder - the specialFolder value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • video

      public MicrosoftGraphVideo video()
      Get the video property: video.
      Returns:
      the video value.
    • withVideo

      public MicrosoftGraphDriveItem withVideo(MicrosoftGraphVideo video)
      Set the video property: video.
      Parameters:
      video - the video value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • webDavUrl

      public String webDavUrl()
      Get the webDavUrl property: WebDAV compatible URL for the item.
      Returns:
      the webDavUrl value.
    • withWebDavUrl

      public MicrosoftGraphDriveItem withWebDavUrl(String webDavUrl)
      Set the webDavUrl property: WebDAV compatible URL for the item.
      Parameters:
      webDavUrl - the webDavUrl value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • workbook

      public MicrosoftGraphWorkbook workbook()
      Get the workbook property: workbook.
      Returns:
      the workbook value.
    • withWorkbook

      public MicrosoftGraphDriveItem withWorkbook(MicrosoftGraphWorkbook workbook)
      Set the workbook property: workbook.
      Parameters:
      workbook - the workbook value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • analytics

      public MicrosoftGraphItemAnalytics analytics()
      Get the analytics property: itemAnalytics.
      Returns:
      the analytics value.
    • withAnalytics

      public MicrosoftGraphDriveItem withAnalytics(MicrosoftGraphItemAnalytics analytics)
      Set the analytics property: itemAnalytics.
      Parameters:
      analytics - the analytics value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • children

      public List<MicrosoftGraphDriveItem> children()
      Get the children property: Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable.
      Returns:
      the children value.
    • withChildren

      public MicrosoftGraphDriveItem withChildren(List<MicrosoftGraphDriveItem> children)
      Set the children property: Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable.
      Parameters:
      children - the children value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • listItem

      public MicrosoftGraphListItem listItem()
      Get the listItem property: listItem.
      Returns:
      the listItem value.
    • withListItem

      public MicrosoftGraphDriveItem withListItem(MicrosoftGraphListItem listItem)
      Set the listItem property: listItem.
      Parameters:
      listItem - the listItem value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • permissions

      public List<MicrosoftGraphPermission> permissions()
      Get the permissions property: The set of permissions for the item. Read-only. Nullable.
      Returns:
      the permissions value.
    • withPermissions

      public MicrosoftGraphDriveItem withPermissions(List<MicrosoftGraphPermission> permissions)
      Set the permissions property: The set of permissions for the item. Read-only. Nullable.
      Parameters:
      permissions - the permissions value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • subscriptions

      public List<MicrosoftGraphSubscription> subscriptions()
      Get the subscriptions property: The set of subscriptions on the item. Only supported on the root of a drive.
      Returns:
      the subscriptions value.
    • withSubscriptions

      public MicrosoftGraphDriveItem withSubscriptions(List<MicrosoftGraphSubscription> subscriptions)
      Set the subscriptions property: The set of subscriptions on the item. Only supported on the root of a drive.
      Parameters:
      subscriptions - the subscriptions value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • thumbnails

      public List<MicrosoftGraphThumbnailSet> thumbnails()
      Get the thumbnails property: Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable.
      Returns:
      the thumbnails value.
    • withThumbnails

      public MicrosoftGraphDriveItem withThumbnails(List<MicrosoftGraphThumbnailSet> thumbnails)
      Set the thumbnails property: Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable.
      Parameters:
      thumbnails - the thumbnails value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • versions

      Get the versions property: The list of previous versions of the item. For more info, see [getting previous versions][]. Read-only. Nullable.
      Returns:
      the versions value.
    • withVersions

      Set the versions property: The list of previous versions of the item. For more info, see [getting previous versions][]. Read-only. Nullable.
      Parameters:
      versions - the versions value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: driveItem.
      Overrides:
      additionalProperties in class MicrosoftGraphBaseItemInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphDriveItem withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: driveItem.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphBaseItemInner
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphDriveItem object itself.
    • withCreatedBy

      public MicrosoftGraphDriveItem withCreatedBy(MicrosoftGraphIdentitySet createdBy)
      Set the createdBy property: identitySet.
      Overrides:
      withCreatedBy in class MicrosoftGraphBaseItemInner
      Parameters:
      createdBy - the createdBy value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withCreatedDateTime

      public MicrosoftGraphDriveItem withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: Date and time of item creation. Read-only.
      Overrides:
      withCreatedDateTime in class MicrosoftGraphBaseItemInner
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withDescription

      public MicrosoftGraphDriveItem withDescription(String description)
      Set the description property: Provides a user-visible description of the item. Optional.
      Overrides:
      withDescription in class MicrosoftGraphBaseItemInner
      Parameters:
      description - the description value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withEtag

      public MicrosoftGraphDriveItem withEtag(String etag)
      Set the etag property: ETag for the item. Read-only.
      Overrides:
      withEtag in class MicrosoftGraphBaseItemInner
      Parameters:
      etag - the etag value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withLastModifiedBy

      public MicrosoftGraphDriveItem withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
      Set the lastModifiedBy property: identitySet.
      Overrides:
      withLastModifiedBy in class MicrosoftGraphBaseItemInner
      Parameters:
      lastModifiedBy - the lastModifiedBy value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withLastModifiedDateTime

      public MicrosoftGraphDriveItem withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
      Set the lastModifiedDateTime property: Date and time the item was last modified. Read-only.
      Overrides:
      withLastModifiedDateTime in class MicrosoftGraphBaseItemInner
      Parameters:
      lastModifiedDateTime - the lastModifiedDateTime value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withName

      public MicrosoftGraphDriveItem withName(String name)
      Set the name property: The name of the item. Read-write.
      Overrides:
      withName in class MicrosoftGraphBaseItemInner
      Parameters:
      name - the name value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withParentReference

      public MicrosoftGraphDriveItem withParentReference(MicrosoftGraphItemReference parentReference)
      Set the parentReference property: itemReference.
      Overrides:
      withParentReference in class MicrosoftGraphBaseItemInner
      Parameters:
      parentReference - the parentReference value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withWebUrl

      public MicrosoftGraphDriveItem withWebUrl(String webUrl)
      Set the webUrl property: URL that displays the resource in the browser. Read-only.
      Overrides:
      withWebUrl in class MicrosoftGraphBaseItemInner
      Parameters:
      webUrl - the webUrl value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withCreatedByUser

      public MicrosoftGraphDriveItem withCreatedByUser(MicrosoftGraphUserInner createdByUser)
      Set the createdByUser property: user

      Represents an Azure Active Directory user object.

      Overrides:
      withCreatedByUser in class MicrosoftGraphBaseItemInner
      Parameters:
      createdByUser - the createdByUser value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withLastModifiedByUser

      public MicrosoftGraphDriveItem withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)
      Set the lastModifiedByUser property: user

      Represents an Azure Active Directory user object.

      Overrides:
      withLastModifiedByUser in class MicrosoftGraphBaseItemInner
      Parameters:
      lastModifiedByUser - the lastModifiedByUser value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withId

      public MicrosoftGraphDriveItem withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphBaseItemInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphBaseItemInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.