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