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.MicrosoftGraphItemAnalytics
analytics()
Get the analytics property: itemAnalytics.MicrosoftGraphAudio
audio()
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.String
cTag()
Get the cTag property: An eTag for the content of the item.MicrosoftGraphDeleted
deleted()
Get the deleted property: deleted.MicrosoftGraphFile
file()
Get the file property: file.MicrosoftGraphFileSystemInfo
fileSystemInfo()
Get the fileSystemInfo property: fileSystemInfo.MicrosoftGraphFolder
folder()
Get the folder property: folder.MicrosoftGraphImage
image()
Get the image property: image.MicrosoftGraphListItem
listItem()
Get the listItem property: listItem.MicrosoftGraphGeoCoordinates
location()
Get the location property: geoCoordinates.MicrosoftGraphPackage
packageProperty()
Get the packageProperty property: package.MicrosoftGraphPendingOperations
pendingOperations()
Get the pendingOperations property: pendingOperations.List<MicrosoftGraphPermission>
permissions()
Get the permissions property: The set of permissions for the item.MicrosoftGraphPhoto
photo()
Get the photo property: photo.MicrosoftGraphPublicationFacet
publication()
Get the publication property: publicationFacet.MicrosoftGraphRemoteItem
remoteItem()
Get the remoteItem property: remoteItem.Map<String,Object>
root()
Get the root property: root.MicrosoftGraphSearchResult
searchResult()
Get the searchResult property: searchResult.MicrosoftGraphShared
shared()
Get the shared property: shared.MicrosoftGraphSharepointIds
sharepointIds()
Get the sharepointIds property: sharepointIds.Long
size()
Get the size property: Size of the item in bytes.MicrosoftGraphSpecialFolder
specialFolder()
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.void
validate()
Validates the instance.List<MicrosoftGraphDriveItemVersion>
versions()
Get the versions property: The list of previous versions of the item.MicrosoftGraphVideo
video()
Get the video property: video.String
webDavUrl()
Get the webDavUrl property: WebDAV compatible URL for the item.MicrosoftGraphDriveItem
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: driveItem.MicrosoftGraphDriveItem
withAnalytics(MicrosoftGraphItemAnalytics analytics)
Set the analytics property: itemAnalytics.MicrosoftGraphDriveItem
withAudio(MicrosoftGraphAudio audio)
Set the audio property: audio.MicrosoftGraphDriveItem
withChildren(List<MicrosoftGraphDriveItem> children)
Set the children property: Collection containing Item objects for the immediate children of Item.MicrosoftGraphDriveItem
withContent(byte[] content)
Set the content property: The content stream, if the item represents a file.MicrosoftGraphDriveItem
withCreatedBy(MicrosoftGraphIdentitySet createdBy)
Set the createdBy property: identitySet.MicrosoftGraphDriveItem
withCreatedByUser(MicrosoftGraphUserInner createdByUser)
Set the createdByUser property: Represents an Azure Active Directory user object.MicrosoftGraphDriveItem
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: Date and time of item creation.MicrosoftGraphDriveItem
withCTag(String cTag)
Set the cTag property: An eTag for the content of the item.MicrosoftGraphDriveItem
withDeleted(MicrosoftGraphDeleted deleted)
Set the deleted property: deleted.MicrosoftGraphDriveItem
withDescription(String description)
Set the description property: Provides a user-visible description of the item.MicrosoftGraphDriveItem
withEtag(String etag)
Set the etag property: ETag for the item.MicrosoftGraphDriveItem
withFile(MicrosoftGraphFile file)
Set the file property: file.MicrosoftGraphDriveItem
withFileSystemInfo(MicrosoftGraphFileSystemInfo fileSystemInfo)
Set the fileSystemInfo property: fileSystemInfo.MicrosoftGraphDriveItem
withFolder(MicrosoftGraphFolder folder)
Set the folder property: folder.MicrosoftGraphDriveItem
withId(String id)
Set the id property: Read-only.MicrosoftGraphDriveItem
withImage(MicrosoftGraphImage image)
Set the image property: image.MicrosoftGraphDriveItem
withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.MicrosoftGraphDriveItem
withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)
Set the lastModifiedByUser property: Represents an Azure Active Directory user object.MicrosoftGraphDriveItem
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the lastModifiedDateTime property: Date and time the item was last modified.MicrosoftGraphDriveItem
withListItem(MicrosoftGraphListItem listItem)
Set the listItem property: listItem.MicrosoftGraphDriveItem
withLocation(MicrosoftGraphGeoCoordinates location)
Set the location property: geoCoordinates.MicrosoftGraphDriveItem
withName(String name)
Set the name property: The name of the item.MicrosoftGraphDriveItem
withPackageProperty(MicrosoftGraphPackage packageProperty)
Set the packageProperty property: package.MicrosoftGraphDriveItem
withParentReference(MicrosoftGraphItemReference parentReference)
Set the parentReference property: itemReference.MicrosoftGraphDriveItem
withPendingOperations(MicrosoftGraphPendingOperations pendingOperations)
Set the pendingOperations property: pendingOperations.MicrosoftGraphDriveItem
withPermissions(List<MicrosoftGraphPermission> permissions)
Set the permissions property: The set of permissions for the item.MicrosoftGraphDriveItem
withPhoto(MicrosoftGraphPhoto photo)
Set the photo property: photo.MicrosoftGraphDriveItem
withPublication(MicrosoftGraphPublicationFacet publication)
Set the publication property: publicationFacet.MicrosoftGraphDriveItem
withRemoteItem(MicrosoftGraphRemoteItem remoteItem)
Set the remoteItem property: remoteItem.MicrosoftGraphDriveItem
withRoot(Map<String,Object> root)
Set the root property: root.MicrosoftGraphDriveItem
withSearchResult(MicrosoftGraphSearchResult searchResult)
Set the searchResult property: searchResult.MicrosoftGraphDriveItem
withShared(MicrosoftGraphShared shared)
Set the shared property: shared.MicrosoftGraphDriveItem
withSharepointIds(MicrosoftGraphSharepointIds sharepointIds)
Set the sharepointIds property: sharepointIds.MicrosoftGraphDriveItem
withSize(Long size)
Set the size property: Size of the item in bytes.MicrosoftGraphDriveItem
withSpecialFolder(MicrosoftGraphSpecialFolder specialFolder)
Set the specialFolder property: specialFolder.MicrosoftGraphDriveItem
withSubscriptions(List<MicrosoftGraphSubscription> subscriptions)
Set the subscriptions property: The set of subscriptions on the item.MicrosoftGraphDriveItem
withThumbnails(List<MicrosoftGraphThumbnailSet> thumbnails)
Set the thumbnails property: Collection containing [ThumbnailSet][] objects associated with the item.MicrosoftGraphDriveItem
withVersions(List<MicrosoftGraphDriveItemVersion> versions)
Set the versions property: The list of previous versions of the item.MicrosoftGraphDriveItem
withVideo(MicrosoftGraphVideo video)
Set the video property: video.MicrosoftGraphDriveItem
withWebDavUrl(String webDavUrl)
Set the webDavUrl property: WebDAV compatible URL for the item.MicrosoftGraphDriveItem
withWebUrl(String webUrl)
Set the webUrl property: URL that displays the resource in the browser.MicrosoftGraphDriveItem
withWorkbook(MicrosoftGraphWorkbook workbook)
Set the workbook property: workbook.MicrosoftGraphWorkbook
workbook()
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:
additionalProperties
in classMicrosoftGraphBaseItemInner
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphDriveItem withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: driveItem.- Overrides:
withAdditionalProperties
in 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:
withCreatedBy
in 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:
withCreatedDateTime
in 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:
withDescription
in 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:
withEtag
in 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:
withLastModifiedBy
in 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:
withLastModifiedDateTime
in 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:
withName
in 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:
withParentReference
in 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:
withWebUrl
in 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:
withCreatedByUser
in 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:
withLastModifiedByUser
in 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:
withId
in classMicrosoftGraphBaseItemInner
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphBaseItemInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-