Class MicrosoftGraphDrive
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphBaseItemInner
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDrive
drive.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: drive.Get the driveType property: Describes the type of drive represented by this resource.Get the following property: The list of items the user is following.items()Get the items property: All items contained in the drive.list()Get the list property: list.owner()Get the owner property: identitySet.quota()Get the quota property: quota.root()Get the root property: driveItem.Get the sharePointIds property: sharepointIds.special()Get the special property: Collection of common folders available in OneDrive.system()Get the system property: systemFacet.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: drive.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.withDescription(String description) Set the description property: Provides a user-visible description of the item.withDriveType(String driveType) Set the driveType property: Describes the type of drive represented by this resource.Set the etag property: ETag for the item.withFollowing(List<MicrosoftGraphDriveItem> following) Set the following property: The list of items the user is following.Set the id property: Read-only.withItems(List<MicrosoftGraphDriveItem> items) Set the items property: All items contained in the drive.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.withList(MicrosoftGraphList list) Set the list property: list.Set the name property: The name of the item.Set the owner property: identitySet.withParentReference(MicrosoftGraphItemReference parentReference) Set the parentReference property: itemReference.withQuota(MicrosoftGraphQuota quota) Set the quota property: quota.Set the root property: driveItem.withSharePointIds(MicrosoftGraphSharepointIds sharePointIds) Set the sharePointIds property: sharepointIds.withSpecial(List<MicrosoftGraphDriveItem> special) Set the special property: Collection of common folders available in OneDrive.withSystem(Map<String, Object> system) Set the system property: systemFacet.withWebUrl(String webUrl) Set the webUrl property: URL that displays the resource in the browser.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
-
MicrosoftGraphDrive
public MicrosoftGraphDrive()Creates an instance of MicrosoftGraphDrive class.
-
-
Method Details
-
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.
-
withDriveType
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.
-
owner
Get the owner property: identitySet.- Returns:
- the owner value.
-
withOwner
Set the owner property: identitySet.- Parameters:
owner- the owner value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
quota
Get the quota property: quota.- Returns:
- the quota value.
-
withQuota
Set the quota property: quota.- Parameters:
quota- the quota value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
system
Get the system property: systemFacet.- Returns:
- the system value.
-
withSystem
Set the system property: systemFacet.- Parameters:
system- the system value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
following
Get the following property: The list of items the user is following. Only in OneDrive for Business.- Returns:
- the following value.
-
withFollowing
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.
-
items
Get the items property: All items contained in the drive. Read-only. Nullable.- Returns:
- the items value.
-
withItems
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.
-
list
Get the list property: list.- Returns:
- the list value.
-
withList
Set the list property: list.- Parameters:
list- the list value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
root
Get the root property: driveItem.- Returns:
- the root value.
-
withRoot
Set the root property: driveItem.- Parameters:
root- the root value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
special
Get the special property: Collection of common folders available in OneDrive. Read-only. Nullable.- Returns:
- the special value.
-
withSpecial
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.
-
additionalProperties
Get the additionalProperties property: drive.- Overrides:
additionalPropertiesin classMicrosoftGraphBaseItemInner- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: drive.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphBaseItemInner- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphDrive 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.
-