public static class BoxRequestsFile.CopyFile extends BoxRequestItem<E,R>
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 |
|---|
CopyFile(java.lang.String id,
java.lang.String parentId,
java.lang.String requestUrl,
BoxSession session)
Creates a copy file request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name currently set for the item copy.
|
java.lang.String |
getParentId()
Returns the parent id currently set for the item copy.
|
protected void |
parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry) |
R |
setName(java.lang.String name)
Sets the name used in the request for the item copy.
|
R |
setParentId(java.lang.String parentId)
Sets the parent id used in the request for the item copy.
|
getId, onSendCompleted, setFieldsbuildUrl, createHeaderMap, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic CopyFile(java.lang.String id,
java.lang.String parentId,
java.lang.String requestUrl,
BoxSession session)
id - id of the file to copyparentId - id of the new parent folderrequestUrl - URL of the copy file endpointsession - the authenticated session that will be used to make the request withpublic java.lang.String getName()
public R setName(java.lang.String name)
name - name for the copy of the item.public java.lang.String getParentId()
public R setParentId(java.lang.String parentId)
parentId - id of the parent folder for the item copy.protected void parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry)
parseHashMapEntry in class BoxRequest<E extends BoxItem,R extends BoxRequest<E,R>>