public static class BoxRequestsFile.PromoteFileVersion extends BoxRequestItem<BoxFileVersion,BoxRequestsFile.PromoteFileVersion>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsmIdmBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Constructor and Description |
|---|
BoxRequestsFile.PromoteFileVersion(java.lang.String id,
java.lang.String versionId,
java.lang.String requestUrl,
BoxSession session)
Creates a promote file version request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
BoxRequestsFile.PromoteFileVersion |
setVersionId(java.lang.String versionId)
Sets the id of the version to promote.
|
getId, setFieldsbuildUrl, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logDebug, logRequest, parseHashMapEntry, parseJsonObject, send, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic BoxRequestsFile.PromoteFileVersion(java.lang.String id,
java.lang.String versionId,
java.lang.String requestUrl,
BoxSession session)
id - id of the file to promote a version ofversionId - id of the version to promote to the toprequestUrl - URL of the promote file version endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsFile.PromoteFileVersion setVersionId(java.lang.String versionId)
versionId - id of the version to promote.