public class DeviceWithReferenceRequest extends BaseRequest implements IDeviceWithReferenceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
DeviceWithReferenceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Device
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
void |
delete(ICallback<? super Device> callback) |
IDeviceWithReferenceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Device |
get() |
void |
get(ICallback<? super Device> callback) |
Device |
patch(Device sourceDevice) |
void |
patch(Device sourceDevice,
ICallback<? super Device> callback) |
Device |
post(Device newDevice,
IJsonBackedObject payload) |
void |
post(Device newDevice,
IJsonBackedObject payload,
ICallback<? super Device> callback) |
IDeviceWithReferenceRequest |
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 DeviceWithReferenceRequest(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 post(Device newDevice, IJsonBackedObject payload, ICallback<? super Device> callback)
post in interface IDeviceWithReferenceRequestpublic Device post(Device newDevice, IJsonBackedObject payload) throws ClientException
post in interface IDeviceWithReferenceRequestClientExceptionpublic void get(ICallback<? super Device> callback)
get in interface IDeviceWithReferenceRequestpublic Device get() throws ClientException
get in interface IDeviceWithReferenceRequestClientExceptionpublic void delete(ICallback<? super Device> callback)
delete in interface IDeviceWithReferenceRequestpublic void delete()
throws ClientException
delete in interface IDeviceWithReferenceRequestClientExceptionpublic void patch(Device sourceDevice, ICallback<? super Device> callback)
patch in interface IDeviceWithReferenceRequestpublic Device patch(Device sourceDevice) throws ClientException
patch in interface IDeviceWithReferenceRequestClientExceptionpublic IDeviceWithReferenceRequest select(java.lang.String value)
select in interface IDeviceWithReferenceRequestvalue - the select clausepublic IDeviceWithReferenceRequest expand(java.lang.String value)
expand in interface IDeviceWithReferenceRequestvalue - the expand clause