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