E - type of BoxItem that is being updated.R - type of BoxRequest that is being created.public abstract class BoxRequestItemUpdate<E extends BoxItem,R extends BoxRequest<E,R>> extends BoxRequestItem<E,R>
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 |
BoxRequestItemUpdate(BoxRequestItemUpdate r) |
|
BoxRequestItemUpdate(java.lang.Class<E> clazz,
java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Creates an update item request with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns the new description currently set for the item.
|
java.lang.String |
getIfMatchEtag()
Returns the etag currently set in the if-match header.
|
java.lang.String |
getName()
Returns the new name currently set for the item.
|
java.lang.String |
getParentId()
Returns the new parent id currently set for the item.
|
BoxSharedLink |
getSharedLink()
Returns the shared link currently set for the item.
|
java.util.List<java.lang.String> |
getTags()
Returns the tags currently set for the item.
|
protected void |
parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry) |
R |
setDescription(java.lang.String description)
Sets the new description for the item.
|
R |
setIfMatchEtag(java.lang.String etag)
Sets the if-match header for the request.
|
R |
setName(java.lang.String name)
Sets the new name for the item.
|
R |
setParentId(java.lang.String parentId)
Sets the new parent id for the item.
|
R |
setSharedLink(BoxSharedLink sharedLink)
Sets the new shared link for the item.
|
R |
setTags(java.util.List<java.lang.String> tags)
Sets the new tags for the item.
|
abstract BoxRequestUpdateSharedItem |
updateSharedLink()
Converts the BoxRequestItemUpdate into a BoxRequestUpdateSharedItem.
|
addRepresentationHintGroup, 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 BoxRequestItemUpdate(java.lang.Class<E> clazz, java.lang.String id, java.lang.String requestUrl, BoxSession session)
clazz - class of the item to return in the response.id - id of the item being updated.requestUrl - URL for the update item endpoint.session - authenticated session that will be used to make the request with.protected BoxRequestItemUpdate(BoxRequestItemUpdate r)
public abstract BoxRequestUpdateSharedItem updateSharedLink()
public java.lang.String getName()
public R setName(java.lang.String name)
name - new name for the item.public java.lang.String getDescription()
public R setDescription(java.lang.String description)
description - description for the item.public java.lang.String getParentId()
public R setParentId(java.lang.String parentId)
parentId - id of the new parent folder for the item.public BoxSharedLink getSharedLink()
public R setSharedLink(BoxSharedLink sharedLink)
sharedLink - new shared link for the item.public R setIfMatchEtag(java.lang.String etag)
setIfMatchEtag in class BoxRequest<E extends BoxItem,R extends BoxRequest<E,R>>etag - etag to set in the if-match header.public java.lang.String getIfMatchEtag()
getIfMatchEtag in class BoxRequest<E extends BoxItem,R extends BoxRequest<E,R>>public java.util.List<java.lang.String> getTags()
public R setTags(java.util.List<java.lang.String> tags)
tags - new tags for the item.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>>