Class DriveItem.DriveItemBuilder<C extends DriveItem,B extends DriveItem.DriveItemBuilder<C,B>>

java.lang.Object
com.amilesend.onedrive.resource.item.BaseItem.BaseItemBuilder<C,B>
com.amilesend.onedrive.resource.item.DriveItem.DriveItemBuilder<C,B>
Direct Known Subclasses:
SpecialDriveItem.SpecialDriveItemBuilder
Enclosing class:
DriveItem

public abstract static class DriveItem.DriveItemBuilder<C extends DriveItem,B extends DriveItem.DriveItemBuilder<C,B>> extends BaseItem.BaseItemBuilder<C,B>
  • Constructor Details

    • DriveItemBuilder

      public DriveItemBuilder()
  • Method Details

    • audio

      public B audio(Audio audio)
      The audio file attributes (read-only).
      Returns:
      this.
    • cTag

      public B cTag(String cTag)
      An eTag for the content of the item (read-only).
      Returns:
      this.
    • file

      public B file(File file)
      Indicates if an item is a file (read-only).
      Returns:
      this.
    • folder

      public B folder(Folder folder)
      Describes if a given drive item is a folder resource type (read-only).
      Returns:
      this.
    • image

      public B image(Image image)
      The image attributes for a file (read-only).
      Returns:
      this.
    • location

      public B location(GeoCoordinates location)
      The geographic coordinates and elevation of a file (read-only).
      Returns:
      this.
    • malware

      public B malware(Object malware)
      If defined, malware was detected in the file (read-only).
      Returns:
      this.
    • _package

      public B _package(Package _package)
      Indicates that a drive item is the top level item in a collection of items (read-only).
      Returns:
      this.
    • photo

      public B photo(Photo photo)
      The photo attributes for a drive item file (read-only).
      Returns:
      this.
    • publication

      public B publication(PublicationFacet publication)
      The published status of a drive item or version (read-only).
      Returns:
      this.
    • remoteItem

      public B remoteItem(RemoteItem remoteItem)
      Indicates that a drive item references one that exists in another drive (read-only).
      Returns:
      this.
    • root

      public B root(Object root)
      If defined, indicates that the item is the top-most folder in the drive (read-only).
      Returns:
      this.
    • searchResult

      public B searchResult(SearchResult searchResult)
      Indicates that the item is in response to a search query (read-only).
      Returns:
      this.
    • shared

      public B shared(Shared shared)
      Indicates that a drive item has been shared with others (read-only).
      Returns:
      this.
    • sharepointIds

      public B sharepointIds(SharePointIds sharepointIds)
      SharePoint resource identifiers for SharePoint and Business account items (read-only).
      Returns:
      this.
    • size

      public B size(long size)
      The size of the item in bytes (read-only).
      Returns:
      this.
    • specialFolder

      public B specialFolder(SpecialFolder specialFolder)
      Describes if the item is a special managed folder (read-only).
      Returns:
      this.
    • video

      public B video(Video video)
      The video file attributes (read-only).
      Returns:
      this.
    • downloadUrl

      public B downloadUrl(String downloadUrl)
      The URL that can be used to download the file's content (read-only).
      Returns:
      this.
    • connection

      public B connection(OneDriveConnection connection)
      Gets the underlying connection instance.
      Returns:
      this.
    • deleted

      public B deleted(Deleted deleted)
      Indicates if an item was deleted (read-only).
      Returns:
      this.
    • fileSystemInfo

      public B fileSystemInfo(FileSystemInfo fileSystemInfo)
      Describes drive (client-side) properties of the local version of a drive item.
      Returns:
      this.
    • conflictBehavior

      public B conflictBehavior(String conflictBehavior)
      Describes how to handle conflicts upon copy/move operations. Valid values include:
      • fail
      • replace
      • rename
      This member is write-only.
      Returns:
      this.
    • sourceUrl

      public B sourceUrl(String sourceUrl)
      The source URL for remote uploading of file contents (write-only). Currently not tested nor supported.
      Returns:
      this.
    • build

      public abstract C build()
      Specified by:
      build in class BaseItem.BaseItemBuilder<C extends DriveItem,B extends DriveItem.DriveItemBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class BaseItem.BaseItemBuilder<C extends DriveItem,B extends DriveItem.DriveItemBuilder<C,B>>