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