public static class BoxRequestsFolder.UpdateFolder extends BoxRequestItemUpdate<BoxFolder,BoxRequestsFolder.UpdateFolder>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsmId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
UpdateFolder(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Creates an update folder request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOwnedById()
Gets the id of the user that will own the folder after update
|
BoxFolder.SyncState |
getSyncState()
Gets the sync state that the folder will be updated with
|
BoxUploadEmail.Access |
getUploadEmailAccess()
Gets the upload email address that the folder will be updated with
|
protected void |
parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry) |
BoxRequestsFolder.UpdateFolder |
setFolderUploadEmailAccess(BoxUploadEmail.Access access)
Sets the upload email address that the folder will be updated to
|
BoxRequestsFolder.UpdateFolder |
setOwnedById(java.lang.String userId)
Sets the id of the user that will own the folder after update
|
BoxRequestsFolder.UpdateFolder |
setSyncState(BoxFolder.SyncState syncState)
Sets the sync state that the folder will be updated to
|
BoxRequestsFolder.UpdateSharedFolder |
updateSharedLink()
Converts the BoxRequestItemUpdate into a BoxRequestUpdateSharedItem.
|
getDescription, getIfMatchEtag, getName, getParentId, getSharedLink, getTags, setDescription, setIfMatchEtag, setName, setParentId, setSharedLink, setTagsgetId, onSendCompleted, setFieldsbuildUrl, createHeaderMap, 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 UpdateFolder(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
id - id of the folder to update information onrequestUrl - URL of the update folder endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsFolder.UpdateSharedFolder updateSharedLink()
BoxRequestItemUpdateupdateSharedLink in class BoxRequestItemUpdate<BoxFolder,BoxRequestsFolder.UpdateFolder>public BoxFolder.SyncState getSyncState()
public BoxRequestsFolder.UpdateFolder setSyncState(BoxFolder.SyncState syncState)
syncState - sync state that the folder will be set topublic BoxUploadEmail.Access getUploadEmailAccess()
public BoxRequestsFolder.UpdateFolder setFolderUploadEmailAccess(BoxUploadEmail.Access access)
access - folder upload email access that will be set topublic java.lang.String getOwnedById()
public BoxRequestsFolder.UpdateFolder setOwnedById(java.lang.String userId)
userId - id of the user that will own theprotected void parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry)
parseHashMapEntry in class BoxRequestItemUpdate<BoxFolder,BoxRequestsFolder.UpdateFolder>