public static class BoxRequestsFile.UpdatedSharedFile extends BoxRequestUpdateSharedItem<BoxFile,BoxRequestsFile.UpdatedSharedFile>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactorymHintHeader, mId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Modifier | Constructor and Description |
|---|---|
protected |
UpdatedSharedFile(BoxRequestsFile.UpdateFile r) |
|
UpdatedSharedFile(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Creates an update shared file request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getCanDownload()
Returns whether or not the file can be downloaded from the shared link.
|
BoxRequestsFile.UpdatedSharedFile |
setCanDownload(boolean canDownload)
Sets whether or not the file can be downloaded from the shared link.
|
getAccess, getPassword, getUnsharedAt, setAccess, setPassword, setRemoveUnsharedAtDate, setUnsharedAt, updateSharedLinkgetDescription, getIfMatchEtag, getName, getParentId, getSharedLink, getTags, parseHashMapEntry, setDescription, setIfMatchEtag, setName, setParentId, setSharedLink, setTagsaddRepresentationHintGroup, createHeaderMap, getId, onSendCompleted, setFieldsbuildUrl, createHttpRequest, createQuery, equals, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic UpdatedSharedFile(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
id - id of the file to update information onrequestUrl - URL of the update file endpointsession - the authenticated session that will be used to make the request withprotected UpdatedSharedFile(BoxRequestsFile.UpdateFile r)
public BoxRequestsFile.UpdatedSharedFile setCanDownload(boolean canDownload)
setCanDownload in class BoxRequestUpdateSharedItem<BoxFile,BoxRequestsFile.UpdatedSharedFile>canDownload - boolean representing whether or not the file can be downloaded from the shared link.public java.lang.Boolean getCanDownload()
getCanDownload in class BoxRequestUpdateSharedItem<BoxFile,BoxRequestsFile.UpdatedSharedFile>