public class ItemAttachmentRequest extends BaseRequest implements IItemAttachmentRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
ItemAttachmentRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the ItemAttachment
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super ItemAttachment> callback)
Delete this item from the service
|
IItemAttachmentRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ItemAttachment |
get()
Gets the ItemAttachment from the service
|
void |
get(ICallback<? super ItemAttachment> callback)
Gets the ItemAttachment from the service
|
ItemAttachment |
patch(ItemAttachment sourceItemAttachment)
Patches this ItemAttachment with a source
|
void |
patch(ItemAttachment sourceItemAttachment,
ICallback<? super ItemAttachment> callback)
Patches this ItemAttachment with a source
|
ItemAttachment |
post(ItemAttachment newItemAttachment)
Creates a ItemAttachment with a new object
|
void |
post(ItemAttachment newItemAttachment,
ICallback<? super ItemAttachment> callback)
Creates a ItemAttachment with a new object
|
ItemAttachment |
put(ItemAttachment newItemAttachment)
Creates a ItemAttachment with a new object
|
void |
put(ItemAttachment newItemAttachment,
ICallback<? super ItemAttachment> callback)
Creates a ItemAttachment with a new object
|
IItemAttachmentRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic ItemAttachmentRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<? super ItemAttachment> callback)
get in interface IItemAttachmentRequestcallback - the callback to be called after success or failurepublic ItemAttachment get() throws ClientException
get in interface IItemAttachmentRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super ItemAttachment> callback)
delete in interface IItemAttachmentRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IItemAttachmentRequestClientException - if there was an exception during the delete operationpublic void patch(ItemAttachment sourceItemAttachment, ICallback<? super ItemAttachment> callback)
patch in interface IItemAttachmentRequestsourceItemAttachment - the source object with updatescallback - the callback to be called after success or failurepublic ItemAttachment patch(ItemAttachment sourceItemAttachment) throws ClientException
patch in interface IItemAttachmentRequestsourceItemAttachment - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(ItemAttachment newItemAttachment, ICallback<? super ItemAttachment> callback)
post in interface IItemAttachmentRequestnewItemAttachment - the new object to createcallback - the callback to be called after success or failurepublic ItemAttachment post(ItemAttachment newItemAttachment) throws ClientException
post in interface IItemAttachmentRequestnewItemAttachment - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(ItemAttachment newItemAttachment, ICallback<? super ItemAttachment> callback)
put in interface IItemAttachmentRequestnewItemAttachment - the object to create/updatecallback - the callback to be called after success or failurepublic ItemAttachment put(ItemAttachment newItemAttachment) throws ClientException
put in interface IItemAttachmentRequestnewItemAttachment - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IItemAttachmentRequest select(java.lang.String value)
select in interface IItemAttachmentRequestvalue - the select clausepublic IItemAttachmentRequest expand(java.lang.String value)
expand in interface IItemAttachmentRequestvalue - the expand clause