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.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: Represents an Azure Active Directory user object.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: Represents an Azure Active Directory user object.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 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:
additionalProperties
in classMicrosoftGraphBaseItemInner
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphDrive withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: drive.- Overrides:
withAdditionalProperties
in 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:
withCreatedBy
in 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:
withCreatedDateTime
in 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:
withDescription
in 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:
withEtag
in 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:
withLastModifiedBy
in 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:
withLastModifiedDateTime
in 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:
withName
in 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:
withParentReference
in 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:
withWebUrl
in 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:
withCreatedByUser
in 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:
withLastModifiedByUser
in 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:
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.
-
-