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