public class ReferenceAttachmentRequest extends BaseRequest implements IReferenceAttachmentRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
ReferenceAttachmentRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the ReferenceAttachment
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<ReferenceAttachment> callback)
Delete this item from the service
|
IReferenceAttachmentRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ReferenceAttachment |
get()
Gets the ReferenceAttachment from the service
|
void |
get(ICallback<ReferenceAttachment> callback)
Gets the ReferenceAttachment from the service
|
ReferenceAttachment |
patch(ReferenceAttachment sourceReferenceAttachment)
Patches this ReferenceAttachment with a source
|
void |
patch(ReferenceAttachment sourceReferenceAttachment,
ICallback<ReferenceAttachment> callback)
Patches this ReferenceAttachment with a source
|
ReferenceAttachment |
post(ReferenceAttachment newReferenceAttachment)
Creates a ReferenceAttachment with a new object
|
void |
post(ReferenceAttachment newReferenceAttachment,
ICallback<ReferenceAttachment> callback)
Creates a ReferenceAttachment with a new object
|
IReferenceAttachmentRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachespublic ReferenceAttachmentRequest(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<ReferenceAttachment> callback)
get in interface IReferenceAttachmentRequestcallback - the callback to be called after success or failurepublic ReferenceAttachment get() throws ClientException
get in interface IReferenceAttachmentRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<ReferenceAttachment> callback)
delete in interface IReferenceAttachmentRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IReferenceAttachmentRequestClientException - if there was an exception during the delete operationpublic void patch(ReferenceAttachment sourceReferenceAttachment, ICallback<ReferenceAttachment> callback)
patch in interface IReferenceAttachmentRequestsourceReferenceAttachment - the source object with updatescallback - the callback to be called after success or failurepublic ReferenceAttachment patch(ReferenceAttachment sourceReferenceAttachment) throws ClientException
patch in interface IReferenceAttachmentRequestsourceReferenceAttachment - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(ReferenceAttachment newReferenceAttachment, ICallback<ReferenceAttachment> callback)
post in interface IReferenceAttachmentRequestnewReferenceAttachment - the new object to createcallback - the callback to be called after success or failurepublic ReferenceAttachment post(ReferenceAttachment newReferenceAttachment) throws ClientException
post in interface IReferenceAttachmentRequestnewReferenceAttachment - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic IReferenceAttachmentRequest select(java.lang.String value)
select in interface IReferenceAttachmentRequestvalue - the select clausepublic IReferenceAttachmentRequest expand(java.lang.String value)
expand in interface IReferenceAttachmentRequestvalue - the expand clause