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
-
public final class MicrosoftGraphDrive extends MicrosoftGraphBaseItemInner
drive.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphDrive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: drive.StringdriveType()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.MicrosoftGraphListlist()Get the list property: list.MicrosoftGraphIdentitySetowner()Get the owner property: identitySet.MicrosoftGraphQuotaquota()Get the quota property: quota.MicrosoftGraphDriveItemroot()Get the root property: driveItem.MicrosoftGraphSharepointIdssharePointIds()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.voidvalidate()Validates the instance.MicrosoftGraphDrivewithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: drive.MicrosoftGraphDrivewithCreatedBy(MicrosoftGraphIdentitySet createdBy)Set the createdBy property: identitySet.MicrosoftGraphDrivewithCreatedByUser(MicrosoftGraphUserInner createdByUser)Set the createdByUser property: Represents an Azure Active Directory user object.MicrosoftGraphDrivewithCreatedDateTime(OffsetDateTime createdDateTime)Set the createdDateTime property: Date and time of item creation.MicrosoftGraphDrivewithDescription(String description)Set the description property: Provides a user-visible description of the item.MicrosoftGraphDrivewithDriveType(String driveType)Set the driveType property: Describes the type of drive represented by this resource.MicrosoftGraphDrivewithEtag(String etag)Set the etag property: ETag for the item.MicrosoftGraphDrivewithFollowing(List<MicrosoftGraphDriveItem> following)Set the following property: The list of items the user is following.MicrosoftGraphDrivewithId(String id)Set the id property: Read-only.MicrosoftGraphDrivewithItems(List<MicrosoftGraphDriveItem> items)Set the items property: All items contained in the drive.MicrosoftGraphDrivewithLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Set the lastModifiedBy property: identitySet.MicrosoftGraphDrivewithLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)Set the lastModifiedByUser property: Represents an Azure Active Directory user object.MicrosoftGraphDrivewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Set the lastModifiedDateTime property: Date and time the item was last modified.MicrosoftGraphDrivewithList(MicrosoftGraphList list)Set the list property: list.MicrosoftGraphDrivewithName(String name)Set the name property: The name of the item.MicrosoftGraphDrivewithOwner(MicrosoftGraphIdentitySet owner)Set the owner property: identitySet.MicrosoftGraphDrivewithParentReference(MicrosoftGraphItemReference parentReference)Set the parentReference property: itemReference.MicrosoftGraphDrivewithQuota(MicrosoftGraphQuota quota)Set the quota property: quota.MicrosoftGraphDrivewithRoot(MicrosoftGraphDriveItem root)Set the root property: driveItem.MicrosoftGraphDrivewithSharePointIds(MicrosoftGraphSharepointIds sharePointIds)Set the sharePointIds property: sharepointIds.MicrosoftGraphDrivewithSpecial(List<MicrosoftGraphDriveItem> special)Set the special property: Collection of common folders available in OneDrive.MicrosoftGraphDrivewithSystem(Map<String,Object> system)Set the system property: systemFacet.MicrosoftGraphDrivewithWebUrl(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, webUrl
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
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.
-
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.
-
owner
public MicrosoftGraphIdentitySet owner()
Get the owner property: identitySet.- Returns:
- the owner value.
-
withOwner
public MicrosoftGraphDrive withOwner(MicrosoftGraphIdentitySet owner)
Set the owner property: identitySet.- Parameters:
owner- the owner value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
quota
public MicrosoftGraphQuota quota()
Get the quota property: quota.- Returns:
- the quota value.
-
withQuota
public MicrosoftGraphDrive withQuota(MicrosoftGraphQuota quota)
Set the quota property: quota.- Parameters:
quota- the quota value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
sharePointIds
public MicrosoftGraphSharepointIds sharePointIds()
Get the sharePointIds property: sharepointIds.- Returns:
- the sharePointIds value.
-
withSharePointIds
public MicrosoftGraphDrive withSharePointIds(MicrosoftGraphSharepointIds sharePointIds)
Set the sharePointIds property: sharepointIds.- Parameters:
sharePointIds- the sharePointIds value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
system
public Map<String,Object> system()
Get the system property: systemFacet.- Returns:
- the system value.
-
withSystem
public MicrosoftGraphDrive withSystem(Map<String,Object> system)
Set the system property: systemFacet.- Parameters:
system- the system value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
following
public List<MicrosoftGraphDriveItem> following()
Get the following property: The list of items the user is following. Only in OneDrive for Business.- Returns:
- the following value.
-
withFollowing
public MicrosoftGraphDrive withFollowing(List<MicrosoftGraphDriveItem> 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.
-
items
public List<MicrosoftGraphDriveItem> items()
Get the items property: All items contained in the drive. Read-only. Nullable.- Returns:
- the items value.
-
withItems
public MicrosoftGraphDrive withItems(List<MicrosoftGraphDriveItem> 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.
-
list
public MicrosoftGraphList list()
Get the list property: list.- Returns:
- the list value.
-
withList
public MicrosoftGraphDrive withList(MicrosoftGraphList list)
Set the list property: list.- Parameters:
list- the list value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
root
public MicrosoftGraphDriveItem root()
Get the root property: driveItem.- Returns:
- the root value.
-
withRoot
public MicrosoftGraphDrive withRoot(MicrosoftGraphDriveItem root)
Set the root property: driveItem.- Parameters:
root- the root value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
special
public List<MicrosoftGraphDriveItem> special()
Get the special property: Collection of common folders available in OneDrive. Read-only. Nullable.- Returns:
- the special value.
-
withSpecial
public MicrosoftGraphDrive withSpecial(List<MicrosoftGraphDriveItem> 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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: drive.- Overrides:
additionalPropertiesin classMicrosoftGraphBaseItemInner- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphDrive withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: drive.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphBaseItemInner- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphDrive object itself.
-
withCreatedBy
public MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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 MicrosoftGraphDrive 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.
-
-