Class MicrosoftGraphDrive


public final class MicrosoftGraphDrive extends MicrosoftGraphBaseItemInner
drive.
  • Constructor Details

    • MicrosoftGraphDrive

      public MicrosoftGraphDrive()
      Creates an instance of MicrosoftGraphDrive class.
  • Method Details

    • 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

      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

      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

      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 class MicrosoftGraphBaseItemInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphDrive withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: drive.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      Parameters:
      webUrl - the webUrl value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withCreatedByUser

      public MicrosoftGraphDrive withCreatedByUser(MicrosoftGraphUserInner createdByUser)
      Set the createdByUser property: user

      Represents an Azure Active Directory user object.

      Overrides:
      withCreatedByUser in class MicrosoftGraphBaseItemInner
      Parameters:
      createdByUser - the createdByUser value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withLastModifiedByUser

      public MicrosoftGraphDrive withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)
      Set the lastModifiedByUser property: user

      Represents an Azure Active Directory user object.

      Overrides:
      withLastModifiedByUser in class MicrosoftGraphBaseItemInner
      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 class MicrosoftGraphBaseItemInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphBaseItemInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.