MicrosoftGraphDrive Class

public final class MicrosoftGraphDrive
extends MicrosoftGraphBaseItemInner

drive.

Constructor Summary

Constructor Description
MicrosoftGraphDrive()

Creates an instance of MicrosoftGraphDrive class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: drive.

String driveType()

Get the driveType property: Describes the type of drive represented by this resource.

List<MicrosoftGraphDriveItem> following()

Get the following property: The list of items the user is following.

List<MicrosoftGraphDriveItem> items()

Get the items property: All items contained in the drive.

MicrosoftGraphList list()

Get the list property: list.

MicrosoftGraphIdentitySet owner()

Get the owner property: identitySet.

MicrosoftGraphQuota quota()

Get the quota property: quota.

MicrosoftGraphDriveItem root()

Get the root property: driveItem.

MicrosoftGraphSharepointIds sharePointIds()

Get the sharePointIds property: sharepointIds.

List<MicrosoftGraphDriveItem> special()

Get the special property: Collection of common folders available in OneDrive.

Map<String,Object> system()

Get the system property: systemFacet.

void validate()

Validates the instance.

MicrosoftGraphDrive withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: drive.

MicrosoftGraphDrive withCreatedBy(MicrosoftGraphIdentitySet createdBy)

Set the createdBy property: identitySet.

MicrosoftGraphDrive withCreatedByUser(MicrosoftGraphUserInner createdByUser)

Set the createdByUser property: user

MicrosoftGraphDrive withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Date and time of item creation.

MicrosoftGraphDrive withDescription(String description)

Set the description property: Provides a user-visible description of the item.

MicrosoftGraphDrive withDriveType(String driveType)

Set the driveType property: Describes the type of drive represented by this resource.

MicrosoftGraphDrive withEtag(String etag)

Set the etag property: ETag for the item.

MicrosoftGraphDrive withFollowing(List<MicrosoftGraphDriveItem> following)

Set the following property: The list of items the user is following.

MicrosoftGraphDrive withId(String id)

Set the id property: Read-only.

MicrosoftGraphDrive withItems(List<MicrosoftGraphDriveItem> items)

Set the items property: All items contained in the drive.

MicrosoftGraphDrive withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

MicrosoftGraphDrive withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)

Set the lastModifiedByUser property: user

MicrosoftGraphDrive withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: Date and time the item was last modified.

MicrosoftGraphDrive withList(MicrosoftGraphList list)

Set the list property: list.

MicrosoftGraphDrive withName(String name)

Set the name property: The name of the item.

MicrosoftGraphDrive withOwner(MicrosoftGraphIdentitySet owner)

Set the owner property: identitySet.

MicrosoftGraphDrive withParentReference(MicrosoftGraphItemReference parentReference)

Set the parentReference property: itemReference.

MicrosoftGraphDrive withQuota(MicrosoftGraphQuota quota)

Set the quota property: quota.

MicrosoftGraphDrive withRoot(MicrosoftGraphDriveItem root)

Set the root property: driveItem.

MicrosoftGraphDrive withSharePointIds(MicrosoftGraphSharepointIds sharePointIds)

Set the sharePointIds property: sharepointIds.

MicrosoftGraphDrive withSpecial(List<MicrosoftGraphDriveItem> special)

Set the special property: Collection of common folders available in OneDrive.

MicrosoftGraphDrive withSystem(Map<String,Object> system)

Set the system property: systemFacet.

MicrosoftGraphDrive withWebUrl(String webUrl)

Set the webUrl property: URL that displays the resource in the browser.

Methods inherited from MicrosoftGraphBaseItemInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDrive

public MicrosoftGraphDrive()

Creates an instance of MicrosoftGraphDrive class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: drive.

Overrides:

MicrosoftGraphDrive.additionalProperties()

Returns:

the additionalProperties value.

driveType

public String driveType()

Get the driveType property: Describes the type of drive represented by this resource. OneDrive personal drives will return personal. OneDrive for Business will return business. SharePoint document libraries will return documentLibrary. Read-only.

Returns:

the driveType value.

following

public List following()

Get the following property: The list of items the user is following. Only in OneDrive for Business.

Returns:

the following value.

items

public List items()

Get the items property: All items contained in the drive. Read-only. Nullable.

Returns:

the items value.

list

public MicrosoftGraphList list()

Get the list property: list.

Returns:

the list value.

owner

public MicrosoftGraphIdentitySet owner()

Get the owner property: identitySet.

Returns:

the owner value.

quota

public MicrosoftGraphQuota quota()

Get the quota property: quota.

Returns:

the quota value.

root

public MicrosoftGraphDriveItem root()

Get the root property: driveItem.

Returns:

the root value.

sharePointIds

public MicrosoftGraphSharepointIds sharePointIds()

Get the sharePointIds property: sharepointIds.

Returns:

the sharePointIds value.

special

public List special()

Get the special property: Collection of common folders available in OneDrive. Read-only. Nullable.

Returns:

the special value.

system

public Map system()

Get the system property: systemFacet.

Returns:

the system value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphDrive.validate()

withAdditionalProperties

public MicrosoftGraphDrive withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: drive.

Overrides:

MicrosoftGraphDrive.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDrive object itself.

withCreatedBy

public MicrosoftGraphDrive withCreatedBy(MicrosoftGraphIdentitySet createdBy)

Set the createdBy property: identitySet.

Overrides:

MicrosoftGraphDrive.withCreatedBy(MicrosoftGraphIdentitySet createdBy)

Parameters:

createdBy

withCreatedByUser

public MicrosoftGraphDrive withCreatedByUser(MicrosoftGraphUserInner createdByUser)

Set the createdByUser property: user

Represents an Azure Active Directory user object.

Overrides:

MicrosoftGraphDrive.withCreatedByUser(MicrosoftGraphUserInner createdByUser)

Parameters:

createdByUser

withCreatedDateTime

public MicrosoftGraphDrive withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Date and time of item creation. Read-only.

Overrides:

MicrosoftGraphDrive.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withDescription

public MicrosoftGraphDrive withDescription(String description)

Set the description property: Provides a user-visible description of the item. Optional.

Overrides:

MicrosoftGraphDrive.withDescription(String description)

Parameters:

description

withDriveType

public MicrosoftGraphDrive withDriveType(String driveType)

Set the driveType property: Describes the type of drive represented by this resource. OneDrive personal drives will return personal. OneDrive for Business will return business. SharePoint document libraries will return documentLibrary. Read-only.

Parameters:

driveType - the driveType value to set.

Returns:

the MicrosoftGraphDrive object itself.

withEtag

public MicrosoftGraphDrive withEtag(String etag)

Set the etag property: ETag for the item. Read-only.

Overrides:

MicrosoftGraphDrive.withEtag(String etag)

Parameters:

etag

withFollowing

public MicrosoftGraphDrive withFollowing(List following)

Set the following property: The list of items the user is following. Only in OneDrive for Business.

Parameters:

following - the following value to set.

Returns:

the MicrosoftGraphDrive object itself.

withId

public MicrosoftGraphDrive withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphDrive.withId(String id)

Parameters:

id

withItems

public MicrosoftGraphDrive withItems(List items)

Set the items property: All items contained in the drive. Read-only. Nullable.

Parameters:

items - the items value to set.

Returns:

the MicrosoftGraphDrive object itself.

withLastModifiedBy

public MicrosoftGraphDrive withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphDrive.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedByUser

public MicrosoftGraphDrive withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)

Set the lastModifiedByUser property: user

Represents an Azure Active Directory user object.

Overrides:

MicrosoftGraphDrive.withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)

Parameters:

lastModifiedByUser

withLastModifiedDateTime

public MicrosoftGraphDrive withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: Date and time the item was last modified. Read-only.

Overrides:

MicrosoftGraphDrive.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withList

public MicrosoftGraphDrive withList(MicrosoftGraphList list)

Set the list property: list.

Parameters:

list - the list value to set.

Returns:

the MicrosoftGraphDrive object itself.

withName

public MicrosoftGraphDrive withName(String name)

Set the name property: The name of the item. Read-write.

Overrides:

MicrosoftGraphDrive.withName(String name)

Parameters:

name

withOwner

public MicrosoftGraphDrive withOwner(MicrosoftGraphIdentitySet owner)

Set the owner property: identitySet.

Parameters:

owner - the owner value to set.

Returns:

the MicrosoftGraphDrive object itself.

withParentReference

public MicrosoftGraphDrive withParentReference(MicrosoftGraphItemReference parentReference)

Set the parentReference property: itemReference.

Overrides:

MicrosoftGraphDrive.withParentReference(MicrosoftGraphItemReference parentReference)

Parameters:

parentReference

withQuota

public MicrosoftGraphDrive withQuota(MicrosoftGraphQuota quota)

Set the quota property: quota.

Parameters:

quota - the quota value to set.

Returns:

the MicrosoftGraphDrive object itself.

withRoot

public MicrosoftGraphDrive withRoot(MicrosoftGraphDriveItem root)

Set the root property: driveItem.

Parameters:

root - the root value to set.

Returns:

the MicrosoftGraphDrive object itself.

withSharePointIds

public MicrosoftGraphDrive withSharePointIds(MicrosoftGraphSharepointIds sharePointIds)

Set the sharePointIds property: sharepointIds.

Parameters:

sharePointIds - the sharePointIds value to set.

Returns:

the MicrosoftGraphDrive object itself.

withSpecial

public MicrosoftGraphDrive withSpecial(List special)

Set the special property: Collection of common folders available in OneDrive. Read-only. Nullable.

Parameters:

special - the special value to set.

Returns:

the MicrosoftGraphDrive object itself.

withSystem

public MicrosoftGraphDrive withSystem(Map system)

Set the system property: systemFacet.

Parameters:

system - the system value to set.

Returns:

the MicrosoftGraphDrive object itself.

withWebUrl

public MicrosoftGraphDrive withWebUrl(String webUrl)

Set the webUrl property: URL that displays the resource in the browser. Read-only.

Overrides:

MicrosoftGraphDrive.withWebUrl(String webUrl)

Parameters:

webUrl

Applies to