Class MicrosoftGraphDriveItem
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphBaseItemInner
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDriveItem
-
public final class MicrosoftGraphDriveItem extends MicrosoftGraphBaseItemInner
driveItem.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphDriveItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: driveItem.MicrosoftGraphItemAnalyticsanalytics()Get the analytics property: itemAnalytics.MicrosoftGraphAudioaudio()Get the audio property: audio.List<MicrosoftGraphDriveItem>children()Get the children property: Collection containing Item objects for the immediate children of Item.byte[]content()Get the content property: The content stream, if the item represents a file.StringcTag()Get the cTag property: An eTag for the content of the item.MicrosoftGraphDeleteddeleted()Get the deleted property: deleted.MicrosoftGraphFilefile()Get the file property: file.MicrosoftGraphFileSystemInfofileSystemInfo()Get the fileSystemInfo property: fileSystemInfo.MicrosoftGraphFolderfolder()Get the folder property: folder.MicrosoftGraphImageimage()Get the image property: image.MicrosoftGraphListItemlistItem()Get the listItem property: listItem.MicrosoftGraphGeoCoordinateslocation()Get the location property: geoCoordinates.MicrosoftGraphPackagepackageProperty()Get the packageProperty property: package.MicrosoftGraphPendingOperationspendingOperations()Get the pendingOperations property: pendingOperations.List<MicrosoftGraphPermission>permissions()Get the permissions property: The set of permissions for the item.MicrosoftGraphPhotophoto()Get the photo property: photo.MicrosoftGraphPublicationFacetpublication()Get the publication property: publicationFacet.MicrosoftGraphRemoteItemremoteItem()Get the remoteItem property: remoteItem.Map<String,Object>root()Get the root property: root.MicrosoftGraphSearchResultsearchResult()Get the searchResult property: searchResult.MicrosoftGraphSharedshared()Get the shared property: shared.MicrosoftGraphSharepointIdssharepointIds()Get the sharepointIds property: sharepointIds.Longsize()Get the size property: Size of the item in bytes.MicrosoftGraphSpecialFolderspecialFolder()Get the specialFolder property: specialFolder.List<MicrosoftGraphSubscription>subscriptions()Get the subscriptions property: The set of subscriptions on the item.List<MicrosoftGraphThumbnailSet>thumbnails()Get the thumbnails property: Collection containing [ThumbnailSet][] objects associated with the item.voidvalidate()Validates the instance.List<MicrosoftGraphDriveItemVersion>versions()Get the versions property: The list of previous versions of the item.MicrosoftGraphVideovideo()Get the video property: video.StringwebDavUrl()Get the webDavUrl property: WebDAV compatible URL for the item.MicrosoftGraphDriveItemwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: driveItem.MicrosoftGraphDriveItemwithAnalytics(MicrosoftGraphItemAnalytics analytics)Set the analytics property: itemAnalytics.MicrosoftGraphDriveItemwithAudio(MicrosoftGraphAudio audio)Set the audio property: audio.MicrosoftGraphDriveItemwithChildren(List<MicrosoftGraphDriveItem> children)Set the children property: Collection containing Item objects for the immediate children of Item.MicrosoftGraphDriveItemwithContent(byte[] content)Set the content property: The content stream, if the item represents a file.MicrosoftGraphDriveItemwithCreatedBy(MicrosoftGraphIdentitySet createdBy)Set the createdBy property: identitySet.MicrosoftGraphDriveItemwithCreatedByUser(MicrosoftGraphUserInner createdByUser)Set the createdByUser property: Represents an Azure Active Directory user object.MicrosoftGraphDriveItemwithCreatedDateTime(OffsetDateTime createdDateTime)Set the createdDateTime property: Date and time of item creation.MicrosoftGraphDriveItemwithCTag(String cTag)Set the cTag property: An eTag for the content of the item.MicrosoftGraphDriveItemwithDeleted(MicrosoftGraphDeleted deleted)Set the deleted property: deleted.MicrosoftGraphDriveItemwithDescription(String description)Set the description property: Provides a user-visible description of the item.MicrosoftGraphDriveItemwithEtag(String etag)Set the etag property: ETag for the item.MicrosoftGraphDriveItemwithFile(MicrosoftGraphFile file)Set the file property: file.MicrosoftGraphDriveItemwithFileSystemInfo(MicrosoftGraphFileSystemInfo fileSystemInfo)Set the fileSystemInfo property: fileSystemInfo.MicrosoftGraphDriveItemwithFolder(MicrosoftGraphFolder folder)Set the folder property: folder.MicrosoftGraphDriveItemwithId(String id)Set the id property: Read-only.MicrosoftGraphDriveItemwithImage(MicrosoftGraphImage image)Set the image property: image.MicrosoftGraphDriveItemwithLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Set the lastModifiedBy property: identitySet.MicrosoftGraphDriveItemwithLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)Set the lastModifiedByUser property: Represents an Azure Active Directory user object.MicrosoftGraphDriveItemwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Set the lastModifiedDateTime property: Date and time the item was last modified.MicrosoftGraphDriveItemwithListItem(MicrosoftGraphListItem listItem)Set the listItem property: listItem.MicrosoftGraphDriveItemwithLocation(MicrosoftGraphGeoCoordinates location)Set the location property: geoCoordinates.MicrosoftGraphDriveItemwithName(String name)Set the name property: The name of the item.MicrosoftGraphDriveItemwithPackageProperty(MicrosoftGraphPackage packageProperty)Set the packageProperty property: package.MicrosoftGraphDriveItemwithParentReference(MicrosoftGraphItemReference parentReference)Set the parentReference property: itemReference.MicrosoftGraphDriveItemwithPendingOperations(MicrosoftGraphPendingOperations pendingOperations)Set the pendingOperations property: pendingOperations.MicrosoftGraphDriveItemwithPermissions(List<MicrosoftGraphPermission> permissions)Set the permissions property: The set of permissions for the item.MicrosoftGraphDriveItemwithPhoto(MicrosoftGraphPhoto photo)Set the photo property: photo.MicrosoftGraphDriveItemwithPublication(MicrosoftGraphPublicationFacet publication)Set the publication property: publicationFacet.MicrosoftGraphDriveItemwithRemoteItem(MicrosoftGraphRemoteItem remoteItem)Set the remoteItem property: remoteItem.MicrosoftGraphDriveItemwithRoot(Map<String,Object> root)Set the root property: root.MicrosoftGraphDriveItemwithSearchResult(MicrosoftGraphSearchResult searchResult)Set the searchResult property: searchResult.MicrosoftGraphDriveItemwithShared(MicrosoftGraphShared shared)Set the shared property: shared.MicrosoftGraphDriveItemwithSharepointIds(MicrosoftGraphSharepointIds sharepointIds)Set the sharepointIds property: sharepointIds.MicrosoftGraphDriveItemwithSize(Long size)Set the size property: Size of the item in bytes.MicrosoftGraphDriveItemwithSpecialFolder(MicrosoftGraphSpecialFolder specialFolder)Set the specialFolder property: specialFolder.MicrosoftGraphDriveItemwithSubscriptions(List<MicrosoftGraphSubscription> subscriptions)Set the subscriptions property: The set of subscriptions on the item.MicrosoftGraphDriveItemwithThumbnails(List<MicrosoftGraphThumbnailSet> thumbnails)Set the thumbnails property: Collection containing [ThumbnailSet][] objects associated with the item.MicrosoftGraphDriveItemwithVersions(List<MicrosoftGraphDriveItemVersion> versions)Set the versions property: The list of previous versions of the item.MicrosoftGraphDriveItemwithVideo(MicrosoftGraphVideo video)Set the video property: video.MicrosoftGraphDriveItemwithWebDavUrl(String webDavUrl)Set the webDavUrl property: WebDAV compatible URL for the item.MicrosoftGraphDriveItemwithWebUrl(String webUrl)Set the webUrl property: URL that displays the resource in the browser.MicrosoftGraphDriveItemwithWorkbook(MicrosoftGraphWorkbook workbook)Set the workbook property: workbook.MicrosoftGraphWorkbookworkbook()Get the workbook property: workbook.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphBaseItemInner
createdBy, createdByUser, createdDateTime, description, etag, lastModifiedBy, lastModifiedByUser, lastModifiedDateTime, name, parentReference, webUrl
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
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
public MicrosoftGraphDriveItem withFile(MicrosoftGraphFile file)
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.
-
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
public List<MicrosoftGraphDriveItemVersion> 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
public MicrosoftGraphDriveItem withVersions(List<MicrosoftGraphDriveItemVersion> versions)
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:
additionalPropertiesin classMicrosoftGraphBaseItemInner- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphDriveItem withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: driveItem.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphBaseItemInner- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphDriveItem object itself.
-
withCreatedBy
public MicrosoftGraphDriveItem withCreatedBy(MicrosoftGraphIdentitySet createdBy)
Set the createdBy property: identitySet.- Overrides:
withCreatedByin classMicrosoftGraphBaseItemInner- 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:
withCreatedDateTimein classMicrosoftGraphBaseItemInner- 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:
withDescriptionin classMicrosoftGraphBaseItemInner- 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:
withEtagin classMicrosoftGraphBaseItemInner- Parameters:
etag- the etag value to set.- Returns:
- the MicrosoftGraphBaseItemInner object itself.
-
withLastModifiedBy
public MicrosoftGraphDriveItem withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.- Overrides:
withLastModifiedByin classMicrosoftGraphBaseItemInner- 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:
withLastModifiedDateTimein classMicrosoftGraphBaseItemInner- 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:
withNamein classMicrosoftGraphBaseItemInner- Parameters:
name- the name value to set.- Returns:
- the MicrosoftGraphBaseItemInner object itself.
-
withParentReference
public MicrosoftGraphDriveItem withParentReference(MicrosoftGraphItemReference parentReference)
Set the parentReference property: itemReference.- Overrides:
withParentReferencein classMicrosoftGraphBaseItemInner- 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:
withWebUrlin classMicrosoftGraphBaseItemInner- Parameters:
webUrl- the webUrl value to set.- Returns:
- the MicrosoftGraphBaseItemInner object itself.
-
withCreatedByUser
public MicrosoftGraphDriveItem withCreatedByUser(MicrosoftGraphUserInner createdByUser)
Set the createdByUser property: Represents an Azure Active Directory user object.- Overrides:
withCreatedByUserin classMicrosoftGraphBaseItemInner- Parameters:
createdByUser- the createdByUser value to set.- Returns:
- the MicrosoftGraphBaseItemInner object itself.
-
withLastModifiedByUser
public MicrosoftGraphDriveItem withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)
Set the lastModifiedByUser property: Represents an Azure Active Directory user object.- Overrides:
withLastModifiedByUserin classMicrosoftGraphBaseItemInner- 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:
withIdin classMicrosoftGraphBaseItemInner- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphBaseItemInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-