public class ManagedEBookRequest extends BaseRequest implements IManagedEBookRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
ManagedEBookRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the ManagedEBook
|
ManagedEBookRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends ManagedEBook> responseClass)
The request for the ManagedEBook
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super ManagedEBook> callback)
Delete this item from the service
|
IManagedEBookRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ManagedEBook |
get()
Gets the ManagedEBook from the service
|
void |
get(ICallback<? super ManagedEBook> callback)
Gets the ManagedEBook from the service
|
ManagedEBook |
patch(ManagedEBook sourceManagedEBook)
Patches this ManagedEBook with a source
|
void |
patch(ManagedEBook sourceManagedEBook,
ICallback<? super ManagedEBook> callback)
Patches this ManagedEBook with a source
|
ManagedEBook |
post(ManagedEBook newManagedEBook)
Creates a ManagedEBook with a new object
|
void |
post(ManagedEBook newManagedEBook,
ICallback<? super ManagedEBook> callback)
Creates a ManagedEBook with a new object
|
ManagedEBook |
put(ManagedEBook newManagedEBook)
Creates a ManagedEBook with a new object
|
void |
put(ManagedEBook newManagedEBook,
ICallback<? super ManagedEBook> callback)
Creates a ManagedEBook with a new object
|
IManagedEBookRequest |
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 ManagedEBookRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends ManagedEBook> responseClass)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestresponseClass - the class of the responsepublic ManagedEBookRequest(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 ManagedEBook> callback)
get in interface IManagedEBookRequestcallback - the callback to be called after success or failurepublic ManagedEBook get() throws ClientException
get in interface IManagedEBookRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super ManagedEBook> callback)
delete in interface IManagedEBookRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IManagedEBookRequestClientException - if there was an exception during the delete operationpublic void patch(ManagedEBook sourceManagedEBook, ICallback<? super ManagedEBook> callback)
patch in interface IManagedEBookRequestsourceManagedEBook - the source object with updatescallback - the callback to be called after success or failurepublic ManagedEBook patch(ManagedEBook sourceManagedEBook) throws ClientException
patch in interface IManagedEBookRequestsourceManagedEBook - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(ManagedEBook newManagedEBook, ICallback<? super ManagedEBook> callback)
post in interface IManagedEBookRequestnewManagedEBook - the new object to createcallback - the callback to be called after success or failurepublic ManagedEBook post(ManagedEBook newManagedEBook) throws ClientException
post in interface IManagedEBookRequestnewManagedEBook - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(ManagedEBook newManagedEBook, ICallback<? super ManagedEBook> callback)
put in interface IManagedEBookRequestnewManagedEBook - the object to create/updatecallback - the callback to be called after success or failurepublic ManagedEBook put(ManagedEBook newManagedEBook) throws ClientException
put in interface IManagedEBookRequestnewManagedEBook - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IManagedEBookRequest select(java.lang.String value)
select in interface IManagedEBookRequestvalue - the select clausepublic IManagedEBookRequest expand(java.lang.String value)
expand in interface IManagedEBookRequestvalue - the expand clause