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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIndicates that a drive item is the top level item in a collection of items (read-only).The audio file attributes (read-only).abstract C
build()
conflictBehavior
(String conflictBehavior) Describes how to handle conflicts upon copy/move operations.connection
(OneDriveConnection connection) Gets the underlying connection instance.An eTag for the content of the item (read-only).Indicates if an item was deleted (read-only).downloadUrl
(String downloadUrl) The URL that can be used to download the file's content (read-only).Indicates if an item is a file (read-only).fileSystemInfo
(FileSystemInfo fileSystemInfo) Describes drive (client-side) properties of the local version of a drive item.Describes if a given drive item is a folder resource type (read-only).The image attributes for a file (read-only).location
(GeoCoordinates location) The geographic coordinates and elevation of a file (read-only).If defined, malware was detected in the file (read-only).The photo attributes for a drive item file (read-only).publication
(PublicationFacet publication) The published status of a drive item or version (read-only).remoteItem
(RemoteItem remoteItem) Indicates that a drive item references one that exists in another drive (read-only).If defined, indicates that the item is the top-most folder in the drive (read-only).searchResult
(SearchResult searchResult) Indicates that the item is in response to a search query (read-only).Indicates that a drive item has been shared with others (read-only).sharepointIds
(SharePointIds sharepointIds) SharePoint resource identifiers for SharePoint and Business account items (read-only).size
(long size) The size of the item in bytes (read-only).The source URL for remote uploading of file contents (write-only).specialFolder
(SpecialFolder specialFolder) Describes if the item is a special managed folder (read-only).toString()
The video file attributes (read-only).Methods inherited from class com.amilesend.onedrive.resource.item.BaseItem.BaseItemBuilder
createdBy, createdDateTime, description, eTag, id, lastModifiedBy, lastModifiedDateTime, name, parentReference, webUrl
-
Constructor Details
-
DriveItemBuilder
public DriveItemBuilder()
-
-
Method Details
-
audio
The audio file attributes (read-only).- Returns:
this
.
-
cTag
An eTag for the content of the item (read-only).- Returns:
this
.
-
file
Indicates if an item is a file (read-only).- Returns:
this
.
-
folder
Describes if a given drive item is a folder resource type (read-only).- Returns:
this
.
-
image
The image attributes for a file (read-only).- Returns:
this
.
-
location
The geographic coordinates and elevation of a file (read-only).- Returns:
this
.
-
malware
If defined, malware was detected in the file (read-only).- Returns:
this
.
-
_package
Indicates that a drive item is the top level item in a collection of items (read-only).- Returns:
this
.
-
photo
The photo attributes for a drive item file (read-only).- Returns:
this
.
-
publication
The published status of a drive item or version (read-only).- Returns:
this
.
-
remoteItem
Indicates that a drive item references one that exists in another drive (read-only).- Returns:
this
.
-
root
If defined, indicates that the item is the top-most folder in the drive (read-only).- Returns:
this
.
-
searchResult
Indicates that the item is in response to a search query (read-only).- Returns:
this
.
-
size
The size of the item in bytes (read-only).- Returns:
this
.
-
specialFolder
Describes if the item is a special managed folder (read-only).- Returns:
this
.
-
video
The video file attributes (read-only).- Returns:
this
.
-
downloadUrl
The URL that can be used to download the file's content (read-only).- Returns:
this
.
-
connection
Gets the underlying connection instance.- Returns:
this
.
-
deleted
Indicates if an item was deleted (read-only).- Returns:
this
.
-
fileSystemInfo
Describes drive (client-side) properties of the local version of a drive item.- Returns:
this
.
-
conflictBehavior
Describes how to handle conflicts upon copy/move operations. Valid values include:- fail
- replace
- rename
- Returns:
this
.
-
sourceUrl
The source URL for remote uploading of file contents (write-only). Currently not tested nor supported.- Returns:
this
.
-
build
- Specified by:
build
in classBaseItem.BaseItemBuilder<C extends DriveItem,
B extends DriveItem.DriveItemBuilder<C, B>>
-
toString
- Overrides:
toString
in classBaseItem.BaseItemBuilder<C extends DriveItem,
B extends DriveItem.DriveItemBuilder<C, B>>
-