public class OrgContactRequest extends BaseRequest implements IOrgContactRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
OrgContactRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the OrgContact
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super OrgContact> callback)
Delete this item from the service
|
IOrgContactRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
OrgContact |
get()
Gets the OrgContact from the service
|
void |
get(ICallback<? super OrgContact> callback)
Gets the OrgContact from the service
|
OrgContact |
patch(OrgContact sourceOrgContact)
Patches this OrgContact with a source
|
void |
patch(OrgContact sourceOrgContact,
ICallback<? super OrgContact> callback)
Patches this OrgContact with a source
|
OrgContact |
post(OrgContact newOrgContact)
Creates a OrgContact with a new object
|
void |
post(OrgContact newOrgContact,
ICallback<? super OrgContact> callback)
Creates a OrgContact with a new object
|
OrgContact |
put(OrgContact newOrgContact)
Creates a OrgContact with a new object
|
void |
put(OrgContact newOrgContact,
ICallback<? super OrgContact> callback)
Creates a OrgContact with a new object
|
IOrgContactRequest |
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 OrgContactRequest(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 OrgContact> callback)
get in interface IOrgContactRequestcallback - the callback to be called after success or failurepublic OrgContact get() throws ClientException
get in interface IOrgContactRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super OrgContact> callback)
delete in interface IOrgContactRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IOrgContactRequestClientException - if there was an exception during the delete operationpublic void patch(OrgContact sourceOrgContact, ICallback<? super OrgContact> callback)
patch in interface IOrgContactRequestsourceOrgContact - the source object with updatescallback - the callback to be called after success or failurepublic OrgContact patch(OrgContact sourceOrgContact) throws ClientException
patch in interface IOrgContactRequestsourceOrgContact - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(OrgContact newOrgContact, ICallback<? super OrgContact> callback)
post in interface IOrgContactRequestnewOrgContact - the new object to createcallback - the callback to be called after success or failurepublic OrgContact post(OrgContact newOrgContact) throws ClientException
post in interface IOrgContactRequestnewOrgContact - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(OrgContact newOrgContact, ICallback<? super OrgContact> callback)
put in interface IOrgContactRequestnewOrgContact - the object to create/updatecallback - the callback to be called after success or failurepublic OrgContact put(OrgContact newOrgContact) throws ClientException
put in interface IOrgContactRequestnewOrgContact - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IOrgContactRequest select(java.lang.String value)
select in interface IOrgContactRequestvalue - the select clausepublic IOrgContactRequest expand(java.lang.String value)
expand in interface IOrgContactRequestvalue - the expand clause